From 12e07e5fb5b5bae410e6dbca722e3ff9f2142525 Mon Sep 17 00:00:00 2001 From: LAX1DUDE Date: Sun, 16 Jan 2022 16:16:57 -0800 Subject: [PATCH] replaced GL_CLAMP with GL_REPEAT, fixed 24 bit PNGs, added a NBT server list template to stable-download --- javascript/classes.js | 3274 +++++++++-------- .../adapter/EaglerAdapterImpl2.java | 2 +- .../net/lax1dude/eaglercraft/EaglerImage.java | 5 + .../eaglercraft/glemu/EaglerAdapterGL30.java | 2 +- .../adapter/EaglerAdapterImpl2.java | 2 +- stable-download/Offline_Download_Version.html | 204 +- stable-download/servers_template.dat | Bin 0 -> 293 bytes stable-download/stable-download.zip | Bin 34174274 -> 34174326 bytes stable-download/web/classes.js | 200 +- stable-download/web/classes.js.map | 2 +- 10 files changed, 1854 insertions(+), 1837 deletions(-) create mode 100644 stable-download/servers_template.dat diff --git a/javascript/classes.js b/javascript/classes.js index f55d795..5358067 100644 --- a/javascript/classes.js +++ b/javascript/classes.js @@ -1165,8 +1165,8 @@ function nle_Client_main($args) { nms_IEntitySelector__clinit_(); nms_EnumGameType__clinit_(); nms_WorldType__clinit_(); - nms_GuiWinGame__clinit_(); nms_ScoreObjectiveCriteria__clinit_(); + nms_GuiWinGame__clinit_(); nms_GuiMerchant__clinit_(); nms_GuiChest__clinit_(); nms_GuiCrafting__clinit_(); @@ -1182,8 +1182,8 @@ function nle_Client_main($args) { nms_EnumCreatureAttribute__clinit_(); nms_EntityFootStepFX__clinit_(); nms_EntityLargeExplodeFX__clinit_(); - nms_GuiButtonMerchant__clinit_(); nms_GuiBeaconButton__clinit_(); + nms_GuiButtonMerchant__clinit_(); nms_GuiScreenBook__clinit_(); nms_GuiButtonNextPage__clinit_(); nle_Client_registerErrorHandler$js_body$_5(); @@ -2123,9 +2123,9 @@ function otp_Platform_prepareNewInstance() { nms_GuiWinGame[c] = nms_GuiWinGame__init_; nms_WorldProviderSurface[c] = nms_WorldProviderSurface__init_; nms_MerchantRecipeList[c] = nms_MerchantRecipeList__init_; + nms_InventoryEnderChest[c] = nms_InventoryEnderChest__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_; @@ -7008,8 +7008,8 @@ function nle_EarlyLoadScreen_paintScreen() { $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); + nlea_EaglerAdapterImpl2_webgl.texParameteri(3553, 10242, 10497); + nlea_EaglerAdapterImpl2_webgl.texParameteri(3553, 10243, 10497); $img = nle_EaglerImage_loadImage(nle_Base64_decodeBase64($rt_s(207))); $upload = nms_GLAllocation_createDirectIntBuffer(36864); jn_IntBuffer_put($upload, $img.$data); @@ -7166,8 +7166,8 @@ function nle_EarlyLoadScreen_paintEnable() { $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); + nlea_EaglerAdapterImpl2_webgl.texParameteri(3553, 10242, 10497); + nlea_EaglerAdapterImpl2_webgl.texParameteri(3553, 10243, 10497); $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(213), jnc_Charset_forName($rt_s(2))))); nleg_EaglerAdapterGL30_$callClinit(); if (!nleg_EaglerAdapterGL30_isWebGL) @@ -8440,7 +8440,7 @@ function nleg_EaglerAdapterGL30_glTexParameteri($p1, $p2, $p3) { $p3 = 9728; break c; case 71: - $p3 = 33071; + $p3 = 10497; break c; case 74: $p3 = 10497; @@ -18335,19 +18335,31 @@ function nle_EaglerImage__init_(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)) { + var var$5, var$6, var$7, $i; + var$5 = $pdata.data; + var$6 = var$5.length; + if (var$6 != $rt_imul($pw, $ph)) { + var$7 = new jl_IllegalArgumentException; + var$7.$suppressionEnabled = 1; + var$7.$writableStackTrace = 1; + var$7.$message = $rt_s(357); + $rt_throw(var$7); + } + a: { $this.$w1 = $pw; $this.$h0 = $ph; $this.$alpha = $palpha; - $this.$data = $pdata; - return; + if (!$palpha) { + $i = 0; + while (true) { + if ($i >= var$6) + break a; + var$5[$i] = var$5[$i] | (-16777216); + $i = $i + 1 | 0; + } + } } - var$5 = new jl_IllegalArgumentException; - var$5.$suppressionEnabled = 1; - var$5.$writableStackTrace = 1; - var$5.$message = $rt_s(357); - $rt_throw(var$5); + $this.$data = $pdata; } function nle_EaglerImage_loadImage($file) { var $p, $e, $$je; @@ -57662,12 +57674,6 @@ function jn_IntBufferOverByteBufferBigEndian_putElement($this, $index, $value) { $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_IDAT() { - cbpc_Chunk.call(this); -} -function cbpc_IEND() { - cbpc_Chunk.call(this); -} function cbpc_PLTE() { cbpc_Chunk.call(this); this.$color = null; @@ -57695,6 +57701,12 @@ function cbpc_PLTE_build($this) { function cbpc_PLTE_getColor($this, $i) { return $this.$color.data[$i]; } +function cbpc_IDAT() { + cbpc_Chunk.call(this); +} +function cbpc_IEND() { + cbpc_Chunk.call(this); +} function jl_Double() { jl_Number.call(this); this.$value6 = 0.0; @@ -63414,13 +63426,13 @@ function nleg_EffectPipeline_init() { 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__wglTexParameteri(3553, 10242, 10497); + nlea_EaglerAdapterImpl2__wglTexParameteri(3553, 10243, 10497); 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__wglTexParameteri(3553, 10242, 10497); + nlea_EaglerAdapterImpl2__wglTexParameteri(3553, 10243, 10497); nlea_EaglerAdapterImpl2__wglBindFramebuffer(36160, nleg_EffectPipeline_framebuffer); nlea_EaglerAdapterImpl2__wglFramebufferTexture2D(36064, nleg_EffectPipeline_framebuffer_color); nlea_EaglerAdapterImpl2__wglFramebufferTexture2D(33306, nleg_EffectPipeline_framebuffer_depth); @@ -170895,8 +170907,8 @@ $java.nleg_EffectPipelineFXAA_initFXAA = function() { $pvert_shader.bindTexture(3553, $upload); 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__wglTexParameteri(3553, 10242, 10497); + nlea_EaglerAdapterImpl2__wglTexParameteri(3553, 10243, 10497); 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); @@ -205074,6 +205086,333 @@ function nms_EntitySenses_clearSensingCache($this) { function cjj_GZIPInputStream() { cjj_InflaterInputStream.call(this); } +function nms_ScoreObjectiveCriteria() { +} +$java.nms_ScoreObjectiveCriteria_field_96643_a = null; +var 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(2831); + ju_HashMap_putImpl($java.nms_ScoreObjectiveCriteria_field_96643_a, $rt_s(2831), var$1); + nms_ScoreObjectiveCriteria_field_96641_b = var$1; + var$2 = new $java.nms_ScoreDummyCriteria; + var$2.$field_96644_g = $rt_s(2832); + ju_HashMap_putImpl($java.nms_ScoreObjectiveCriteria_field_96643_a, $rt_s(2832), var$2); + $java.nms_ScoreObjectiveCriteria_field_96642_c = var$2; + var$2 = new $java.nms_ScoreDummyCriteria; + var$2.$field_96644_g = $rt_s(2833); + ju_HashMap_putImpl($java.nms_ScoreObjectiveCriteria_field_96643_a, $rt_s(2833), var$2); + nms_ScoreObjectiveCriteria_field_96639_d = var$2; + var$2 = new $java.nms_ScoreDummyCriteria; + var$2.$field_96644_g = $rt_s(2834); + ju_HashMap_putImpl($java.nms_ScoreObjectiveCriteria_field_96643_a, $rt_s(2834), var$2); + nms_ScoreObjectiveCriteria_field_96640_e = var$2; + var$2 = new $java.nms_ScoreHealthCriteria; + var$2.$field_96644_g = $rt_s(2835); + ju_HashMap_putImpl($java.nms_ScoreObjectiveCriteria_field_96643_a, $rt_s(2835), var$2); + $java.nms_ScoreObjectiveCriteria_field_96638_f = var$2; +} +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, var$2, var$3, $var2, $var4, $var6, $var8, $var10, $var12, 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();$var12 = $thread.pop();$var10 = $thread.pop();$var8 = $thread.pop();$var6 = $thread.pop();$var4 = $thread.pop();$var2 = $thread.pop();var$3 = $thread.pop();var$2 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); + } + main: while (true) { switch ($ptr) { + case 0: + $var1 = 0; + var$2 = 24; + while ($var1 < 16) { + var$3 = $this.$rand0; + var$3.$seed = Long_and(Long_add(Long_mul(var$3.$seed, new Long(3740067437, 5)), Long_fromInt(11)), new Long(4294967295, 65535)); + $var2 = Long_shru(var$3.$seed, var$2).lo / 1.6777216E7 * 2.0 - 1.0; + var$3 = $this.$rand0; + var$3.$seed = Long_and(Long_add(Long_mul(var$3.$seed, new Long(3740067437, 5)), Long_fromInt(11)), new Long(4294967295, 65535)); + $var4 = Long_shru(var$3.$seed, var$2).lo / 1.6777216E7 * 2.0 - 1.0; + var$3 = $this.$rand0; + var$3.$seed = Long_and(Long_add(Long_mul(var$3.$seed, new Long(3740067437, 5)), Long_fromInt(11)), new Long(4294967295, 65535)); + $var6 = Long_shru(var$3.$seed, var$2).lo / 1.6777216E7 * 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$3 = $this.$worldObj; + var$10 = $this.$particleName0; + var$11 = $var4 + 0.2; + var$12 = 0; + if (var$12 < var$3.$worldAccesses.$size0) { + var$13 = var$3.$worldAccesses; + if (var$12 >= 0 && var$12 < var$13.$size0) { + var$13 = var$13.$array1.data[var$12]; + $ptr = 1; + continue main; + } + var$3 = new jl_IndexOutOfBoundsException; + var$3.$suppressionEnabled = 1; + var$3.$writableStackTrace = 1; + $rt_throw(var$3); + } + } + $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$13, var$10, $var8, $var10, $var12, $var2, var$11, $var6); + if ($rt_suspending()) { + break main; + } + var$12 = var$12 + 1 | 0; + a: while (true) { + if (var$12 < var$3.$worldAccesses.$size0) { + var$13 = var$3.$worldAccesses; + if (var$12 >= 0 && var$12 < var$13.$size0) { + var$13 = var$13.$array1.data[var$12]; + continue main; + } + var$3 = new jl_IndexOutOfBoundsException; + var$3.$suppressionEnabled = 1; + var$3.$writableStackTrace = 1; + $rt_throw(var$3); + } + while (true) { + $var1 = $var1 + 1 | 0; + if ($var1 >= 16) + break a; + var$3 = $this.$rand0; + var$3.$seed = Long_and(Long_add(Long_mul(var$3.$seed, new Long(3740067437, 5)), Long_fromInt(11)), new Long(4294967295, 65535)); + $var2 = Long_shru(var$3.$seed, var$2).lo / 1.6777216E7 * 2.0 - 1.0; + var$3 = $this.$rand0; + var$3.$seed = Long_and(Long_add(Long_mul(var$3.$seed, new Long(3740067437, 5)), Long_fromInt(11)), new Long(4294967295, 65535)); + $var4 = Long_shru(var$3.$seed, var$2).lo / 1.6777216E7 * 2.0 - 1.0; + var$3 = $this.$rand0; + var$3.$seed = Long_and(Long_add(Long_mul(var$3.$seed, new Long(3740067437, 5)), Long_fromInt(11)), new Long(4294967295, 65535)); + $var6 = Long_shru(var$3.$seed, var$2).lo / 1.6777216E7 * 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$3 = $this.$worldObj; + var$10 = $this.$particleName0; + var$11 = $var4 + 0.2; + var$12 = 0; + } + $this.$currentLife = $this.$currentLife + 1 | 0; + if ($this.$currentLife >= $this.$maximumLife) + $this.$isDead = 1; + return; + default: $rt_invalidPointer(); + }} + $rt_nativeThread().push($this, $var1, var$2, var$3, $var2, $var4, $var6, $var8, $var10, $var12, var$10, var$11, var$12, var$13, $ptr); +}; +$java.nms_EntityCrit2FX_getFXLayer = function($this) { + return 3; +}; +function nms_WorldSettings() { + var a = this; jl_Object.call(a); + a.$seed0 = 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.$seed0; +}; +$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; +}; +function nms_GuiDownloadTerrain() { + 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: + 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(2836)); + 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_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_GuiWinGame() { var a = this; nms_GuiScreen.call(a); a.$updateCounter3 = 0; @@ -205236,16 +205575,16 @@ $java.nms_GuiWinGame_initGui = function($this) { $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)), $java.nms_EnumChatFormatting_WHITE), $java.nms_EnumChatFormatting_OBFUSCATED), $java.nms_EnumChatFormatting_GREEN), $java.nms_EnumChatFormatting_AQUA)); $var5 = ju_Random__init_1(Long_fromInt(8124371)); - var$4 = nlea_EaglerAdapterImpl2_fileContentsLines($rt_s(2831)).data.length; + var$4 = nlea_EaglerAdapterImpl2_fileContentsLines($rt_s(2837)).data.length; var$5 = 0; while (var$5 < var$4) { nle_EaglerProfile_$callClinit(); - $var1 = jl_String_replaceAll($var1, $rt_s(2832), nle_EaglerProfile_username); + $var1 = jl_String_replaceAll($var1, $rt_s(2838), 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), $java.nms_EnumChatFormatting_WHITE), $java.nms_EnumChatFormatting_OBFUSCATED), jl_String_substring0($rt_s(2833), 0, ju_Random_nextInt($var5, 4) + 3 | 0)), $var8)); + $var1 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append9(jl_StringBuilder_append9(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var7), $java.nms_EnumChatFormatting_WHITE), $java.nms_EnumChatFormatting_OBFUSCATED), jl_String_substring0($rt_s(2839), 0, ju_Random_nextInt($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)); @@ -205256,11 +205595,11 @@ $java.nms_GuiWinGame_initGui = function($this) { ju_ArrayList_add($this.$lines, $rt_s(44)); $var6_0 = $var6_0 + 1 | 0; } - $var6_0 = nlea_EaglerAdapterImpl2_fileContentsLines($rt_s(2834)).data.length; + $var6_0 = nlea_EaglerAdapterImpl2_fileContentsLines($rt_s(2840)).data.length; var$10 = 0; while (var$10 < $var6_0) { nle_EaglerProfile_$callClinit(); - $var1 = jl_String_replaceAll(jl_String_replaceAll($var1, $rt_s(2832), nle_EaglerProfile_username), $rt_s(2835), $rt_s(2836)); + $var1 = jl_String_replaceAll(jl_String_replaceAll($var1, $rt_s(2838), nle_EaglerProfile_username), $rt_s(2841), $rt_s(2842)); 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; @@ -205397,7 +205736,7 @@ $java.nms_GuiWinGame_drawScreen = function($this, $par1, $par2, $par3) { $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(2837))) + if (jl_String_startsWith0($var12, $rt_s(2843))) 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); else { nle_EaglercraftRandom_setSeed($this.$fontRenderer0.$fontRandom, Long_add(Long_mul(Long_fromInt($var10), new Long(4238972211, 0)), Long_fromInt($this.$updateCounter3 / 4 | 0))); @@ -205439,7 +205778,7 @@ $java.nms_GuiWinGame_drawScreen = function($this, $par1, $par2, $par3) { function nms_GuiWinGame__clinit_() { var var$1; var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(2838); + var$1.$path = $rt_s(2844); var$1.$glObject = (-1); ju_ArrayList_add(nle_TextureLocation_locations, var$1); $java.nms_GuiWinGame_bk = var$1; @@ -205454,141 +205793,26 @@ function nms_GuiWinGame__clinit_() { ju_ArrayList_add(nle_TextureLocation_locations, var$1); $java.nms_GuiWinGame_vigg = var$1; } -function nms_WorldSettings() { +function nms_NpcMerchant() { var a = this; jl_Object.call(a); - a.$seed0 = Long_ZERO; - a.$theGameType = null; - a.$mapFeaturesEnabled = 0; - a.$hardcoreEnabled = 0; - a.$terrainType2 = null; - a.$commandsAllowed = 0; - a.$field_82751_h = null; + a.$theMerchantInventory = null; + a.$customer = null; + a.$recipeList = null; } -$java.nms_WorldSettings_getSeed = function($this) { - return $this.$seed0; +$java.nms_NpcMerchant_getCustomer = function($this) { + return $this.$customer; }; -$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; -}; -function nms_GuiDownloadTerrain() { - var a = this; nms_GuiScreen.call(a); - a.$netHandler = null; - a.$updateCounter1 = 0; -} -$java.nms_GuiDownloadTerrain_keyTyped = function($this, $par1, $par2) { +$java.nms_NpcMerchant_setCustomer = function($this, $par1EntityPlayer) { 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_NpcMerchant_getRecipes = function($this, $par1EntityPlayer) { + return $this.$recipeList; }; -$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: - 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_NpcMerchant_setRecipes = function($this, $par1MerchantRecipeList) { + $this.$recipeList = $par1MerchantRecipeList; }; -$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(2839)); - 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); +$java.nms_NpcMerchant_useRecipe = function($this, $par1MerchantRecipe) { + return; }; function nms_EntityPickupFX() { var a = this; nms_EntityFX.call(a); @@ -205712,6 +205936,525 @@ $java.nms_EntityPickupFX_onUpdate = function($this) { $java.nms_EntityPickupFX_getFXLayer = function($this) { return 3; }; +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(2845)); + $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(1067)), 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(2846), 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; + nms_RenderHelper_enableGUIStandardItemLighting2(); + nleg_EaglerAdapterGL30_glDisable(13); + nleg_EaglerAdapterGL30_glEnable(41); + nleg_EaglerAdapterGL30_glEnable(15); + nleg_EaglerAdapterGL30_glEnable(13); + nms_GuiContainer_itemRenderer.$zLevel0 = 100.0; + $var8 = nms_GuiContainer_itemRenderer; + $var4 = $this.$fontRenderer0; + var$12 = $this.$mc4.$renderEngine; + $var7 = $var5 + 36 | 0; + var$13 = $var6 + 24 | 0; + $ptr = 2; + continue main; + } + $var8 = new jl_IndexOutOfBoundsException; + $var8.$suppressionEnabled = 1; + $var8.$writableStackTrace = 1; + $rt_throw($var8); + } + return; + case 2: + nms_RenderItem_renderItemAndEffectIntoGUI($var8, $var4, 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) { + $var8 = nms_GuiContainer_itemRenderer; + var$12 = $this.$fontRenderer0; + $var4 = $this.$mc4.$renderEngine; + $var7 = $var5 + 120 | 0; + $ptr = 3; + continue main; + } + $var8 = nms_GuiContainer_itemRenderer; + $var4 = $this.$fontRenderer0; + var$12 = $this.$mc4.$renderEngine; + $var7 = $var5 + 62 | 0; + $ptr = 4; + continue main; + case 3: + nms_RenderItem_renderItemAndEffectIntoGUI($var8, var$12, $var4, $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($var8, $var4, 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); + $var8 = nms_GuiContainer_itemRenderer; + var$12 = $this.$fontRenderer0; + $var4 = $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); +}; +function nms_GuiMerchant_getIMerchant($this) { + return $this.$theIMerchant; +} +function nms_GuiMerchant__clinit_() { + var var$1; + var$1 = new nle_TextureLocation; + var$1.$path = $rt_s(2847); + 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); +} +function nms_MerchantRecipeList_readRecipiesFromStream($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_Explosion() { var a = this; jl_Object.call(a); a.$isFlaming = 0; @@ -206377,737 +207120,6 @@ function nms_Explosion_doExplosionB($this, $par1) { 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; } -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, var$2, var$3, $var2, $var4, $var6, $var8, $var10, $var12, 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();$var12 = $thread.pop();$var10 = $thread.pop();$var8 = $thread.pop();$var6 = $thread.pop();$var4 = $thread.pop();$var2 = $thread.pop();var$3 = $thread.pop();var$2 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var1 = 0; - var$2 = 24; - while ($var1 < 16) { - var$3 = $this.$rand0; - var$3.$seed = Long_and(Long_add(Long_mul(var$3.$seed, new Long(3740067437, 5)), Long_fromInt(11)), new Long(4294967295, 65535)); - $var2 = Long_shru(var$3.$seed, var$2).lo / 1.6777216E7 * 2.0 - 1.0; - var$3 = $this.$rand0; - var$3.$seed = Long_and(Long_add(Long_mul(var$3.$seed, new Long(3740067437, 5)), Long_fromInt(11)), new Long(4294967295, 65535)); - $var4 = Long_shru(var$3.$seed, var$2).lo / 1.6777216E7 * 2.0 - 1.0; - var$3 = $this.$rand0; - var$3.$seed = Long_and(Long_add(Long_mul(var$3.$seed, new Long(3740067437, 5)), Long_fromInt(11)), new Long(4294967295, 65535)); - $var6 = Long_shru(var$3.$seed, var$2).lo / 1.6777216E7 * 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$3 = $this.$worldObj; - var$10 = $this.$particleName0; - var$11 = $var4 + 0.2; - var$12 = 0; - if (var$12 < var$3.$worldAccesses.$size0) { - var$13 = var$3.$worldAccesses; - if (var$12 >= 0 && var$12 < var$13.$size0) { - var$13 = var$13.$array1.data[var$12]; - $ptr = 1; - continue main; - } - var$3 = new jl_IndexOutOfBoundsException; - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - $rt_throw(var$3); - } - } - $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$13, var$10, $var8, $var10, $var12, $var2, var$11, $var6); - if ($rt_suspending()) { - break main; - } - var$12 = var$12 + 1 | 0; - a: while (true) { - if (var$12 < var$3.$worldAccesses.$size0) { - var$13 = var$3.$worldAccesses; - if (var$12 >= 0 && var$12 < var$13.$size0) { - var$13 = var$13.$array1.data[var$12]; - continue main; - } - var$3 = new jl_IndexOutOfBoundsException; - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - $rt_throw(var$3); - } - while (true) { - $var1 = $var1 + 1 | 0; - if ($var1 >= 16) - break a; - var$3 = $this.$rand0; - var$3.$seed = Long_and(Long_add(Long_mul(var$3.$seed, new Long(3740067437, 5)), Long_fromInt(11)), new Long(4294967295, 65535)); - $var2 = Long_shru(var$3.$seed, var$2).lo / 1.6777216E7 * 2.0 - 1.0; - var$3 = $this.$rand0; - var$3.$seed = Long_and(Long_add(Long_mul(var$3.$seed, new Long(3740067437, 5)), Long_fromInt(11)), new Long(4294967295, 65535)); - $var4 = Long_shru(var$3.$seed, var$2).lo / 1.6777216E7 * 2.0 - 1.0; - var$3 = $this.$rand0; - var$3.$seed = Long_and(Long_add(Long_mul(var$3.$seed, new Long(3740067437, 5)), Long_fromInt(11)), new Long(4294967295, 65535)); - $var6 = Long_shru(var$3.$seed, var$2).lo / 1.6777216E7 * 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$3 = $this.$worldObj; - var$10 = $this.$particleName0; - var$11 = $var4 + 0.2; - var$12 = 0; - } - $this.$currentLife = $this.$currentLife + 1 | 0; - if ($this.$currentLife >= $this.$maximumLife) - $this.$isDead = 1; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, var$2, var$3, $var2, $var4, $var6, $var8, $var10, $var12, var$10, var$11, var$12, var$13, $ptr); -}; -$java.nms_EntityCrit2FX_getFXLayer = function($this) { - return 3; -}; -function nms_ScoreObjectiveCriteria() { -} -$java.nms_ScoreObjectiveCriteria_field_96643_a = null; -var 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(2840); - ju_HashMap_putImpl($java.nms_ScoreObjectiveCriteria_field_96643_a, $rt_s(2840), var$1); - nms_ScoreObjectiveCriteria_field_96641_b = var$1; - var$2 = new $java.nms_ScoreDummyCriteria; - var$2.$field_96644_g = $rt_s(2841); - ju_HashMap_putImpl($java.nms_ScoreObjectiveCriteria_field_96643_a, $rt_s(2841), var$2); - $java.nms_ScoreObjectiveCriteria_field_96642_c = var$2; - var$2 = new $java.nms_ScoreDummyCriteria; - var$2.$field_96644_g = $rt_s(2842); - ju_HashMap_putImpl($java.nms_ScoreObjectiveCriteria_field_96643_a, $rt_s(2842), var$2); - nms_ScoreObjectiveCriteria_field_96639_d = var$2; - var$2 = new $java.nms_ScoreDummyCriteria; - var$2.$field_96644_g = $rt_s(2843); - ju_HashMap_putImpl($java.nms_ScoreObjectiveCriteria_field_96643_a, $rt_s(2843), var$2); - nms_ScoreObjectiveCriteria_field_96640_e = var$2; - var$2 = new $java.nms_ScoreHealthCriteria; - var$2.$field_96644_g = $rt_s(2844); - ju_HashMap_putImpl($java.nms_ScoreObjectiveCriteria_field_96643_a, $rt_s(2844), var$2); - $java.nms_ScoreObjectiveCriteria_field_96638_f = var$2; -} -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_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(2845)); - $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(1067)), 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(2846), 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; - nms_RenderHelper_enableGUIStandardItemLighting2(); - nleg_EaglerAdapterGL30_glDisable(13); - nleg_EaglerAdapterGL30_glEnable(41); - nleg_EaglerAdapterGL30_glEnable(15); - nleg_EaglerAdapterGL30_glEnable(13); - nms_GuiContainer_itemRenderer.$zLevel0 = 100.0; - $var8 = nms_GuiContainer_itemRenderer; - $var4 = $this.$fontRenderer0; - var$12 = $this.$mc4.$renderEngine; - $var7 = $var5 + 36 | 0; - var$13 = $var6 + 24 | 0; - $ptr = 2; - continue main; - } - $var8 = new jl_IndexOutOfBoundsException; - $var8.$suppressionEnabled = 1; - $var8.$writableStackTrace = 1; - $rt_throw($var8); - } - return; - case 2: - nms_RenderItem_renderItemAndEffectIntoGUI($var8, $var4, 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) { - $var8 = nms_GuiContainer_itemRenderer; - var$12 = $this.$fontRenderer0; - $var4 = $this.$mc4.$renderEngine; - $var7 = $var5 + 120 | 0; - $ptr = 3; - continue main; - } - $var8 = nms_GuiContainer_itemRenderer; - $var4 = $this.$fontRenderer0; - var$12 = $this.$mc4.$renderEngine; - $var7 = $var5 + 62 | 0; - $ptr = 4; - continue main; - case 3: - nms_RenderItem_renderItemAndEffectIntoGUI($var8, var$12, $var4, $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($var8, $var4, 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); - $var8 = nms_GuiContainer_itemRenderer; - var$12 = $this.$fontRenderer0; - $var4 = $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); -}; -function nms_GuiMerchant_getIMerchant($this) { - return $this.$theIMerchant; -} -function nms_GuiMerchant__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(2847); - 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); -} -function nms_MerchantRecipeList_readRecipiesFromStream($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_NpcMerchant() { - 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; -}; $java.nms_GameRuleValue = function() { var a = this; jl_Object.call(a); a.$valueString = null; @@ -207147,88 +207159,6 @@ $java.nms_GameRuleValue_setValue = function($this, $par1Str) { $java.nms_GameRuleValue_getGameRuleBooleanValue = function($this) { return $this.$valueBoolean; }; -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_InventoryMerchant() { var a = this; jl_Object.call(a); a.$theMerchant = null; @@ -207352,104 +207282,97 @@ $java.nms_InventoryMerchant_setCurrentRecipeIndex = function($this, $par1) { $this.$currentRecipeIndex0 = $par1; $java.nms_InventoryMerchant_resetRecipeAndSlots($this); }; -function nms_WorldProviderHell() { - nms_WorldProvider.call(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; } -$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); +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_WorldProviderHell_registerWorldChunkManager = function($this) { - $this.$isHellWorld = 1; - $this.$hasNoSky = 1; - $this.$dimensionId = (-1); +$java.nms_MerchantRecipe__init_ = function($this, $par1ItemStack, $par2ItemStack, $par3ItemStack) { + $this.$itemToBuy = $par1ItemStack; + $this.$secondItemToBuy = $par2ItemStack; + $this.$itemToSell = $par3ItemStack; + $this.$maxTradeUses = 7; }; -$java.nms_WorldProviderHell_getFogColor = function($this, $par1, $par2) { - return nms_Vec3Pool_getVecFromPool($this.$worldObj0.$vecPool, 0.20000000298023224, 0.029999999329447746, 0.029999999329447746); +$java.nms_MerchantRecipe_getItemToBuy = function($this) { + return $this.$itemToBuy; }; -$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_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; } -}; -$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); + return var$2; } -$java.nms_WorldProviderEnd__init_ = function() { - var var_0 = new nms_WorldProviderEnd(); - nms_WorldProviderEnd__init_(var_0); - return var_0; +$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; }; -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_MerchantRecipe_incrementToolUses = function($this) { + $this.$toolUses = $this.$toolUses + 1 | 0; }; -$java.nms_WorldProviderEnd_calculateCelestialAngle = function($this, $par1, $par3) { - return 0.0; +$java.nms_MerchantRecipe_func_82783_a = function($this, $par1) { + $this.$maxTradeUses = $this.$maxTradeUses + $par1 | 0; }; -$java.nms_WorldProviderEnd_calcSunriseSunsetColors = function($this, $par1, $par2) { - return null; +$java.nms_MerchantRecipe_func_82784_g = function($this) { + return $this.$toolUses < $this.$maxTradeUses ? 0 : 1; }; -$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_MerchantRecipe_func_82785_h = function($this) { + $this.$toolUses = $this.$maxTradeUses; }; -$java.nms_WorldProviderEnd_isSkyColored = function($this) { +$java.nms_ScoreDummyCriteria = function() { + jl_Object.call(this); + this.$field_96644_g = null; +}; +$java.nms_ScoreDummyCriteria_isReadOnly = 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_ScoreHealthCriteria = function() { + $java.nms_ScoreDummyCriteria.call(this); }; function nms_InventoryEnderChest() { nms_InventoryBasic.call(this); @@ -207925,15 +207848,104 @@ $java.nms_ContainerPlayer_transferStackInSlot = function($this, $par1EntityPlaye $java.nms_ContainerPlayer_func_94530_a = function($this, $par1ItemStack, $par2Slot) { return $par2Slot.$inventory0 === $this.$craftResult ? 0 : 1; }; -$java.nms_ScoreDummyCriteria = function() { - jl_Object.call(this); - this.$field_96644_g = null; +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; }; -$java.nms_ScoreDummyCriteria_isReadOnly = function($this) { +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_ScoreHealthCriteria = function() { - $java.nms_ScoreDummyCriteria.call(this); +$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; }; function nms_InventoryCraftResult() { jl_Object.call(this); @@ -217435,6 +217447,519 @@ function nms_EnumCreatureAttribute__clinit_() { var$3[2] = nms_EnumCreatureAttribute_ARTHROPOD; $java.nms_EnumCreatureAttribute_$VALUES = var$2; } +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.$x4 = $par1; + var$3.$y3 = 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.$x4 = $par1; + var$3.$y3 = 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.$x4 = $par1; + var$3.$y3 = 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.$x4 = $par1; + var$3.$y3 = 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.$x4 = $par1; + var$3.$y3 = 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.$x4 = var$5; + var$3.$y3 = $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.$x4 = $par1; + var$3.$y3 = 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.$x4 = $par1; + var$3.$y3 = 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.$x4 = $par1; + var$3.$y3 = 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.$x4 = $par1; + var$3.$y3 = 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.$x4 = $par1; + var$3.$y3 = 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.$x4 = $par1; + var$3.$y3 = 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.$x4 = $par1; + var$3.$y3 = 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.$x4 = var$5; + var$4.$y3 = 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.$x4, $par1ChunkPosition.$y3, $par1ChunkPosition.$z5)) ? nms_BlockBaseRailLogic__init_($this.$theRail, $this.$logicWorld, $par1ChunkPosition.$x4, $par1ChunkPosition.$y3, $par1ChunkPosition.$z5) : nms_BlockRailBase_isRailBlock(nms_World_getBlockId($this.$logicWorld, $par1ChunkPosition.$x4, $par1ChunkPosition.$y3 + 1 | 0, $par1ChunkPosition.$z5)) ? nms_BlockBaseRailLogic__init_($this.$theRail, $this.$logicWorld, + $par1ChunkPosition.$x4, $par1ChunkPosition.$y3 + 1 | 0, $par1ChunkPosition.$z5) : !nms_BlockRailBase_isRailBlock(nms_World_getBlockId($this.$logicWorld, $par1ChunkPosition.$x4, $par1ChunkPosition.$y3 - 1 | 0, $par1ChunkPosition.$z5)) ? null : nms_BlockBaseRailLogic__init_($this.$theRail, $this.$logicWorld, $par1ChunkPosition.$x4, $par1ChunkPosition.$y3 - 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.$x4 == $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.$x4 == $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.$x4 = $var2; + var$3.$y3 = $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.$x4 = $par1; + $var4.$y3 = $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_InventoryLargeChest() { var a = this; jl_Object.call(a); a.$name11 = null; @@ -218154,519 +218679,6 @@ $java.nms_GuiCommandBlock_drawScreen = function($this, $par1, $par2, $par3) { 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.$x4 = $par1; - var$3.$y3 = 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.$x4 = $par1; - var$3.$y3 = 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.$x4 = $par1; - var$3.$y3 = 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.$x4 = $par1; - var$3.$y3 = 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.$x4 = $par1; - var$3.$y3 = 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.$x4 = var$5; - var$3.$y3 = $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.$x4 = $par1; - var$3.$y3 = 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.$x4 = $par1; - var$3.$y3 = 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.$x4 = $par1; - var$3.$y3 = 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.$x4 = $par1; - var$3.$y3 = 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.$x4 = $par1; - var$3.$y3 = 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.$x4 = $par1; - var$3.$y3 = 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.$x4 = $par1; - var$3.$y3 = 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.$x4 = var$5; - var$4.$y3 = 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.$x4, $par1ChunkPosition.$y3, $par1ChunkPosition.$z5)) ? nms_BlockBaseRailLogic__init_($this.$theRail, $this.$logicWorld, $par1ChunkPosition.$x4, $par1ChunkPosition.$y3, $par1ChunkPosition.$z5) : nms_BlockRailBase_isRailBlock(nms_World_getBlockId($this.$logicWorld, $par1ChunkPosition.$x4, $par1ChunkPosition.$y3 + 1 | 0, $par1ChunkPosition.$z5)) ? nms_BlockBaseRailLogic__init_($this.$theRail, $this.$logicWorld, - $par1ChunkPosition.$x4, $par1ChunkPosition.$y3 + 1 | 0, $par1ChunkPosition.$z5) : !nms_BlockRailBase_isRailBlock(nms_World_getBlockId($this.$logicWorld, $par1ChunkPosition.$x4, $par1ChunkPosition.$y3 - 1 | 0, $par1ChunkPosition.$z5)) ? null : nms_BlockBaseRailLogic__init_($this.$theRail, $this.$logicWorld, $par1ChunkPosition.$x4, $par1ChunkPosition.$y3 - 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.$x4 == $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.$x4 == $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.$x4 = $var2; - var$3.$y3 = $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.$x4 = $par1; - $var4.$y3 = $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; @@ -222825,40 +222837,6 @@ $java.nms_EnchantmentNameParts__clinit_ = function() { var$1.$wordList = jur_Pattern_split(jur_Pattern_compile($rt_s(320), 0), $rt_s(2951), 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.$xPosition14 && $par3 >= $this.$yPosition && $par2 < ($this.$xPosition14 + $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.$xPosition14, $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(2847); - 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; @@ -222931,6 +222909,40 @@ $java.nms_GuiBeaconButtonCancel_func_82251_b = function($this, $par1, $par2) { var$4.$array3 = var$5; nms_GuiContainer_func_102021_a(var$3, var$4, $par1, $par2); }; +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.$xPosition14 && $par3 >= $this.$yPosition && $par2 < ($this.$xPosition14 + $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.$xPosition14, $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(2847); + var$1.$glObject = (-1); + ju_ArrayList_add(nle_TextureLocation_locations, var$1); + $java.nms_GuiButtonMerchant_tex = var$1; +} $java.nms_GuiBeaconButtonPower = function() { var a = this; nms_GuiBeaconButton.call(a); a.$field_82261_l = 0; @@ -226675,9 +226687,9 @@ 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_PLTE, 0, cbpc_Chunk, [], 0, 3, 0, 0, cbpc_IDAT, "IDAT", 3, cbpc_Chunk, [], 0, 3, 0, 0, cbpc_IEND, 0, cbpc_Chunk, [], 0, 3, 0, 0, -cbpc_PLTE, 0, 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, @@ -228107,31 +228119,31 @@ 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); }], +nms_ScoreObjectiveCriteria, 0, jl_Object, [], 3, 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_WorldSettings, 0, jl_Object, [], 4, 3, 0, 0, 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_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); }], -nms_Explosion, 0, jl_Object, [], 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_WorldProviderSurface, 0, nms_WorldProvider, [], 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); }], +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); }], 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_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_Explosion, 0, jl_Object, [], 0, 3, 0, 0, $java.nms_GameRuleValue, "GameRuleValue", 24, jl_Object, [], 0, 0, 0, 0, -nms_MerchantRecipe, "MerchantRecipe", 24, jl_Object, [], 0, 3, 0, 0, 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, +$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, 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_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); }], -nms_InventoryEnderChest, 0, 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); }], -$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_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); }], @@ -228214,6 +228226,7 @@ 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_BlockBaseRailLogic, 0, jl_Object, [], 0, 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); }], @@ -228221,7 +228234,6 @@ nms_GuiEditSign, 0, nms_GuiScreen, [], 0, 3, nms_GuiEditSign_$callClinit, ["$ini { $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); }], @@ -228249,10 +228261,10 @@ nms_EntityFireworkSparkFX, "EntityFireworkSparkFX", 24, nms_EntityFX, [], 0, 3, 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, $java.nms_EnchantmentNameParts_$callClinit, 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); }], +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); }], $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); }], @@ -228425,7 +228437,7 @@ $rt_stringPool(["Can\'t enter monitor from another thread synchronously", "@", " "(no connection)", "3rd party", "addServer.enterIp", "https", "addServer.SSLWarn1", "addServer.SSLWarn2", "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", "NOT_SET", "SURVIVAL", "survival", "CREATIVE", "creative", "ADVENTURE", "adventure", "flat", "largeBiomes", "default_1_1", "doFireTick", -"doMobSpawning", "commandBlockOutput", "vines", "/title/win.txt", "PLAYERNAME", "XXXXXXXX", "/title/credits.txt", "\t", " ", "[C]", "%blur%/gui/background.png", "multiplayer.downloadingTerrain", "dummy", "deathCount", "playerKillCount", "totalKillCount", "health", "entity.Villager.name", "MC|TrSel", "/gui/trading.png", "###", "#W#", "#X#", "XXX", "##", "X#X", "# #", " X ", "AAA", "BEB", "CCC", " # ", "X X", "XRX", "XSX", " B ", "A ", " B", "# ", "## ", " #", " #X", "# X", "# ", " X", "III", "#R#", "TTT", +"doMobSpawning", "commandBlockOutput", "vines", "dummy", "deathCount", "playerKillCount", "totalKillCount", "health", "multiplayer.downloadingTerrain", "/title/win.txt", "PLAYERNAME", "XXXXXXXX", "/title/credits.txt", "\t", " ", "[C]", "%blur%/gui/background.png", "entity.Villager.name", "MC|TrSel", "/gui/trading.png", "###", "#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", diff --git a/src/lwjgl/java/net/lax1dude/eaglercraft/adapter/EaglerAdapterImpl2.java b/src/lwjgl/java/net/lax1dude/eaglercraft/adapter/EaglerAdapterImpl2.java index 71de229..94cf971 100644 --- a/src/lwjgl/java/net/lax1dude/eaglercraft/adapter/EaglerAdapterImpl2.java +++ b/src/lwjgl/java/net/lax1dude/eaglercraft/adapter/EaglerAdapterImpl2.java @@ -173,7 +173,7 @@ public class EaglerAdapterImpl2 { public static final int _wGL_SRC_COLOR = GL11.GL_SRC_COLOR; public static final int _wGL_ONE = GL11.GL_ONE; public static final int _wGL_NEAREST = GL11.GL_NEAREST; - public static final int _wGL_CLAMP = GL11.GL_CLAMP; + public static final int _wGL_CLAMP = GL11.GL_REPEAT; public static final int _wGL_TEXTURE_WRAP_S = GL11.GL_TEXTURE_WRAP_S; public static final int _wGL_TEXTURE_WRAP_T = GL11.GL_TEXTURE_WRAP_T; public static final int _wGL_TEXTURE_MAX_LEVEL = GL12.GL_TEXTURE_MAX_LEVEL; diff --git a/src/main/java/net/lax1dude/eaglercraft/EaglerImage.java b/src/main/java/net/lax1dude/eaglercraft/EaglerImage.java index 1724e49..94a3331 100644 --- a/src/main/java/net/lax1dude/eaglercraft/EaglerImage.java +++ b/src/main/java/net/lax1dude/eaglercraft/EaglerImage.java @@ -28,6 +28,11 @@ public class EaglerImage { this.w = pw; this.h = ph; this.alpha = palpha; + if(!palpha) { + for(int i = 0; i < pdata.length; ++i) { + pdata[i] = pdata[i] | 0xFF000000; + } + } this.data = pdata; } diff --git a/src/main/java/net/lax1dude/eaglercraft/glemu/EaglerAdapterGL30.java b/src/main/java/net/lax1dude/eaglercraft/glemu/EaglerAdapterGL30.java index 3a08d8f..2f0c729 100644 --- a/src/main/java/net/lax1dude/eaglercraft/glemu/EaglerAdapterGL30.java +++ b/src/main/java/net/lax1dude/eaglercraft/glemu/EaglerAdapterGL30.java @@ -677,7 +677,7 @@ public class EaglerAdapterGL30 extends EaglerAdapterImpl2 { case GL_NEAREST_MIPMAP_NEAREST: pp3 = _wGL_NEAREST_MIPMAP_NEAREST; break; case GL_NEAREST: pp3 = _wGL_NEAREST; break; case GL_REPEAT: pp3 = _wGL_REPEAT; break; - case GL_CLAMP: pp3 = _wGL_CLAMP; break; + case GL_CLAMP: pp3 = _wGL_REPEAT; break; } if(selectedTex == 0 && boundTexture0 != null && pp2 == _wGL_TEXTURE_MAG_FILTER) { diff --git a/src/teavm/java/net/lax1dude/eaglercraft/adapter/EaglerAdapterImpl2.java b/src/teavm/java/net/lax1dude/eaglercraft/adapter/EaglerAdapterImpl2.java index e5580f5..ad262cb 100644 --- a/src/teavm/java/net/lax1dude/eaglercraft/adapter/EaglerAdapterImpl2.java +++ b/src/teavm/java/net/lax1dude/eaglercraft/adapter/EaglerAdapterImpl2.java @@ -395,7 +395,7 @@ public class EaglerAdapterImpl2 { public static final int _wGL_SRC_COLOR = SRC_COLOR; public static final int _wGL_ONE = ONE; public static final int _wGL_NEAREST = NEAREST; - public static final int _wGL_CLAMP = CLAMP_TO_EDGE; + public static final int _wGL_CLAMP = REPEAT; public static final int _wGL_TEXTURE_WRAP_S = TEXTURE_WRAP_S; public static final int _wGL_TEXTURE_WRAP_T = TEXTURE_WRAP_T; public static final int _wGL_REPEAT = REPEAT; diff --git a/stable-download/Offline_Download_Version.html b/stable-download/Offline_Download_Version.html index 61a7857..d80832b 100644 --- a/stable-download/Offline_Download_Version.html +++ b/stable-download/Offline_Download_Version.html @@ -20,7 +20,7 @@ Visit this link to check for newer versions of this file: https://github.com/LAX1DUDE/eaglercraft/blob/main/stable-download/Offline_Download_Version.html -This version of eaglercraft you are using right now is from 1/15/2022 +This version of eaglercraft you are using right now is from 1/16/2022 --> @@ -198,7 +198,7 @@ function Or(a){var b,c,d;if(!EX(a,Id)&&a.constructor.$meta.item===null){b=new LU function AAH(){E.call(this);} A.W8=null;A.W9=null;A.W$=0;A.W_=function(){var a=new AAH();A7e(a);return a;}; function A7e(a){return;} -function Bxa(b){var c,d,$p,$z;$p=0;if(ZL()){var $T=Md();$p=$T.l();d=$T.l();c=$T.l();b=$T.l();}_:while(true){switch($p){case 0:A.W8=null;A.W9=null;A.W$=0;A.Xa=new ADX;A.Xb=D($rt_intcls());BFw();Bux();BnA();AXZ();Bd7();Bzw();A.Xc=0;BmJ();Bb6();BkO();Bv1();BaR();A4q();BjB();A$V();BaV();BBD();Bbx();A_7();BmZ();Bqg();Bln();A4L();Bvj();Bh8();AXu();Bwx();BwU();BeT();Bje();A3T();A2h();BlS();BcX();A3j();Bn5();A5p();BpH();A_O();BgP();Btb();Bjz();BlY();Bxj();Byu();Bq7();BE$();ByI();BcC();BEs();A4a();A7z();Bsv();A4x();BAv();BGm();A2G();Byd();A1j();BrS();BiU();A6x();A_2();Bhw();Bfx();A6$();BrA();BpA();A_Q();Bzn();BnM();A9_();A9V();A6p();A7D();Bqs();A_k();A0N();BD9();BrH();BdD();BFx();Bjb();BBU();Bqy();A7Z();Bs2();BhC();Bc2();BwH();Bfn();Big();AY$();BuU();A00();BBH();A2O();BjN();Bce();A_v();A_F();AZv();AY3();A_1();Bxo();AXd();A5x();AZb();AY8();BGk();BuD();BzL();A$g();AXw();Bp1();Bu_();A_f();Bc5();Bwt();BdQ();BxQ();AZK();BEI();A$v();A3e();Bef();Bzy();Bm$();Bg9();A5B();Bvz();BeM();Bok();BF9();BhM();Bto();BwJ();ByA();A7u();AYR();A9W();AZe();BrQ();AWH();Brg();A66();A4c();AYc();BoL();BBS();BpD();Bop();BaO();Bde();Bq5();BBs();AZM();Bzh();BnZ();A$q();BAR();Bz5();BCK();Bs8();A5m();BF$();Be8();BdN();A3F();BrJ();BBl();Br8();BBR();BgO();Bks();BmW();BGw();AWI();Bfj();BCJ();Bpm();Byy();A8a();A1a();BBV();BCd();AXo();Bfl();A97();BdY();AZm();Bg8();Bgw();BmV();BgE();ByO();Bak();Bjl();Bif();AYN();BEO();A1J();A95();Btn();Bcz();A2z();A_e();A6C();Bmn();Bnp();BhK();BpL();A4E();BDY();A0s();Bnv();BmE();A54();A5A();BfQ();A1z();Bf1();BlF();A21();BB4();BtS();A$l();BkP();BaU();Bv4();BAT();ByF();BtH();AYX();BBF();Bju();A4K();A6k();BiR();Blg();BB_();Blh();A_p();BzO();Bfu();A_X();b +function Bxa(b){var c,d,$p,$z;$p=0;if(ZL()){var $T=Md();$p=$T.l();d=$T.l();c=$T.l();b=$T.l();}_:while(true){switch($p){case 0:A.W8=null;A.W9=null;A.W$=0;A.Xa=new ADX;A.Xb=D($rt_intcls());BFw();Bux();BnA();AXZ();Bd7();Bzw();A.Xc=0;BmJ();Bb6();BkO();Bv1();BaR();A4q();BjB();A$V();BaV();BBD();Bbx();A_7();BmZ();Bqg();Bln();A4L();Bvj();Bh8();AXu();Bwx();BwU();BeT();Bje();A3T();A2h();BlS();BcX();A3j();Bn5();A5p();BpH();A_O();BgP();Btb();Bjz();BlY();Bxj();Byu();Bq7();BE$();ByI();BcC();BEs();A4a();A7z();Bsv();A4x();BAv();BGm();A2G();Byd();A1j();BrS();BiU();A6x();A_2();Bhw();Bfx();A6$();BrA();BpA();A_Q();Bzn();BnM();A9_();A9V();A6p();A7D();Bqs();A_k();A0N();BD9();BrH();BdD();BFx();Bjb();BBU();Bqy();A7Z();Bs2();BhC();Bc2();BwH();Bfn();Big();AY$();BuU();A00();BBH();A2O();BjN();Bce();A_v();A_F();AZv();AY3();A_1();Bxo();AXd();A5x();AZb();AY8();BGk();BuD();BzL();A$g();AXw();Bp1();Bu_();A_f();Bc5();Bwt();BdQ();BxQ();AZK();BEI();A$v();A3e();Bef();Bzy();Bm$();Bg9();A5B();Bvz();BeM();Bok();BF9();BhM();Bto();BwJ();ByA();A7u();AYR();A9W();AZe();BrQ();AWH();Brg();A66();A4c();AYc();BoL();BBS();BpD();Bop();BaO();Bde();Bq5();BBs();AZM();Bzh();BnZ();A$q();BAR();Bz5();BCK();Bs8();A5m();BF$();Be8();BdN();A3F();BrJ();BBl();Br8();BBR();BgO();Bks();BmW();BGw();AWI();Bfj();BCJ();Bpm();Byy();A8a();A1a();BBV();BCd();AXo();Bfl();A97();BdY();AZm();Bg8();Bgw();BmV();BgE();ByO();Bak();Bjl();Bif();AYN();BEO();A1J();A95();Btn();Bcz();A2z();A_e();A6C();Bmn();Bnp();BhK();BpL();A4E();BDY();A0s();Bnv();BmE();A54();A5A();BfQ();A1z();Bf1();BlF();A21();BtS();BB4();A$l();BkP();BaU();Bv4();BAT();ByF();BtH();AYX();BBF();Bju();A4K();A6k();BiR();Blg();BB_();Blh();A_p();BzO();Bfu();A_X();b =BWA(window.minecraftOpts).data;c=window.document;d=b[0];d=c.getElementById($rt_ustr(d));A.W8=d;c=b[1];$p=1;case 1:BAO(d,c);if(C()){break _;}Bn4();if(b.length>2)AXA(b[2]);$p=2;case 2:Bg5();if(C()){break _;}return;default:Zu();}}Md().s(b,c,d,$p);} function Bg5(){var b,c,d,e,$p,$z;$p=0;if(ZL()){var $T=Md();$p=$T.l();e=$T.l();d=$T.l();c=$T.l();b=$T.l();}_:while(true){switch($p){case 0:if(A.Xd===null){b=new Bm;b.P=new Hy;c=new M;c.b=$rt_createCharArray(16);b.C=c;b.bd=$rt_createCharArray(32);b.bh=0;c=new Bn;Bo(c,B(2),F(X,0));b.bg=c;A.Xd=b;}d=A.Xd;b=d.C;G(b,b.a,B(3));e=b.a;Bd(b,e,e+1|0);b.b.data[e]=10;Bx(d);A.W9=A.R0();c=A.W9;$p=1;case 1:Bt9(c);if(C()){break _;}return;default:Zu();}}Md().s(b,c,d,e,$p);} function A$O(){var b,c,d,e;b=window.minecraftError;c=new M;c.b=$rt_createCharArray(16);G(c,c.a,B(4));G(c,c.a,B(5));G(c,c.a,B(6));d=$rt_str(window.minecraftErrorL);G(c,c.a,d);e=c.a;Bd(c,e,e+1|0);c.b.data[e]=10;G(c,c.a,B(7));d=$rt_str(b.name);G(c,c.a,d);e=c.a;Bd(c,e,e+1|0);c.b.data[e]=10;G(c,c.a,B(8));d=$rt_str(b.message);G(c,c.a,d);e=c.a;Bd(c,e,e+1|0);c.b.data[e]=10;G(c,c.a,B(9));d=$rt_str(b.stack);G(c,c.a,d);e=c.a;Bd(c,e,e+1|0);c.b.data[e]=10;Btf(Q(c.b,0,c.a));} @@ -249,7 +249,7 @@ CuF;Hy[c]=CBL;AWV[c]=A.Bd;BGC[c]=A.FA;Hx[c]=CxN;BI[c]=Cn8;XB[c]=A74;AVM[c]=Ba1;A =Cow;Y2[c]=BUm;YY[c]=BYF;AUh[c]=CA9;AUy[c]=Chq;Yt[c]=CkK;ATD[c]=BJg;ASI[c]=CjT;ASz[c]=BRg;MD[c]=A.H6;YT[c]=Coh;AAr[c]=A.Gt;Pi[c]=BLl;BjM[c]=A.DM;T_[c]=A.J3;Io[c]=CmZ;AKy[c]=BjT;BEv[c]=B2W;UB[c]=Bra;AA3[c]=Bci;Mt[c]=A.D9;Jg[c]=CCB;BkI[c]=A.I0;Bzp[c]=A.NY;AOl[c]=AWY;A5Z[c]=A.KK;ATc[c]=B8A;Bu2[c]=Crz;A4O[c]=Cci;BvX[c]=A3P;AAS[c]=Bkj;AUw[c]=CaC;AD2[c]=BRa;AHn[c]=B9Y;ABv[c]=A.GS;AGh[c]=A.Ja;ANb[c]=Cik;EK[c]=Cz6;Bld[c]=BYa;Bpd[c]=BYm;BDH[c]=Co1;HO[c]=Bcw;JH[c]=BfU;ADV[c]=BwN;AFd[c]=CzS;AMQ[c]=BsK;AIM[c]=A_5;ST[c] =BOB;Me[c]=BDl;Kw[c]=A16;ADP[c]=AWW;AHQ[c]=A.IR;AP2[c]=ChE;AKJ[c]=Cxn;Ss[c]=BE3;AT3[c]=BJ2;AWd[c]=CAT;Rd[c]=Cee;AAD[c]=BQs;FK[c]=A.Bu;AGo[c]=BoK;AO1[c]=B3B;ASm[c]=B$Y;AKT[c]=Ca7;Go[c]=CAg;TI[c]=A6d;ATk[c]=A.P0;CK[c]=B3w;A0_[c]=CmL;A$m[c]=Cxh;BgH[c]=Cp3;A6q[c]=A.Ji;AOh[c]=CC$;AOi[c]=Co8;AHf[c]=CpG;AGR[c]=BWV;A4M[c]=CoL;BrC[c]=BPd;A5y[c]=Cko;ADz[c]=BK5;AB7[c]=CpX;A7Y[c]=B$7;AED[c]=Cu7;BbD[c]=Cxl;A2c[c]=A.LU;BlG[c]=CfD;BxH[c]=CkM;BDP[c]=B2s;A7$[c]=CvE;BCY[c]=Cks;A4t[c]=Csg;A56[c]=BK0;AXS[c]=BKo;A82[c]=BQR;Be6[c] =BRS;A5g[c]=B7H;ByE[c]=BIb;A2m[c]=Clt;BtF[c]=BQd;Bfg[c]=A.I4;A0R[c]=Cll;AZV[c]=Ccv;BuJ[c]=A.E9;AEP[c]=Cnd;BEu[c]=A.Fi;BbH[c]=CyG;Bl1[c]=A.Go;Byc[c]=Czw;NS[c]=B$S;U1[c]=Bpa;Yc[c]=CkF;AHy[c]=BAC;SP[c]=Bgp;AHC[c]=A0K;AU0[c]=CkV;ABq[c]=AXB;KB[c]=A.G2;ACb[c]=BFT;Pq[c]=BZf;PU[c]=BC1;RJ[c]=Cyj;AEI[c]=AZ8;UE[c]=A77;AE0[c]=BEb;WJ[c]=BZJ;ABz[c]=A$3;PC[c]=A1c;ADM[c]=A7L;NV[c]=Bxp;AK4[c]=ChT;BAS[c]=BHI;AAM[c]=Bat;BDg[c]=BJL;A4I[c]=Cjp;AQq[c]=A.OR;ALC[c]=BSl;AGi[c]=BA7;Bvu[c]=CpB;Vj[c]=A.PV;ADd[c]=A_n;QI[c]=AY9;AFP[c]=B0y;Sa[c] -=BPs;ABO[c]=A.Hc;XY[c]=A.I$;AB$[c]=A.Fv;Pk[c]=A_w;Rz[c]=BX9;ACt[c]=Cwd;Uv[c]=A.F1;Y5[c]=Cil;HS[c]=CgY;AOH[c]=A.MY;A3W[c]=Cir;YU[c]=BAI;AQg[c]=A.KS;AKw[c]=BQh;AP5[c]=A.BW;AIt[c]=A3D;Ug[c]=Buz;ARp[c]=B9n;AG5[c]=A.M$;WE[c]=A.PF;AVF[c]=BZP;AXG[c]=CAS;Tu[c]=AXQ;AAF[c]=BMj;AQD[c]=Ct$;AUL[c]=CqZ;API[c]=Cdl;AVB[c]=Coc;Wv[c]=Ch0;AKl[c]=Baz;ARl[c]=B9O;BhB[c]=BPP;AWR[c]=A.Nl;AWL[c]=CzL;A4j[c]=BWg;BFu[c]=B8X;Brq[c]=BLi;Br6[c]=A.Iq;BuK[c]=Cug;BCn[c]=Ctf;Bdw[c]=CrM;A9p[c]=B3b;A75[c]=Cbe;AOg[c]=BcO;AFb[c]=BFU;J$[c]=Bd0;AVD[c] +=BPs;ABO[c]=A.Hc;XY[c]=A.I$;AB$[c]=A.Fv;Pk[c]=A_w;Rz[c]=BX9;ACt[c]=Cwd;Uv[c]=A.F1;Y5[c]=Cil;HS[c]=CgY;AOH[c]=A.MY;A3W[c]=Cir;YU[c]=BAI;AQg[c]=A.KS;AKw[c]=BQh;AP5[c]=A.BW;AIt[c]=A3D;Ug[c]=Buz;ARp[c]=B9n;AG5[c]=A.M$;WE[c]=A.PF;AVF[c]=BZP;AXG[c]=CAS;Tu[c]=AXQ;AQD[c]=Ct$;AAF[c]=BMj;AUL[c]=CqZ;API[c]=Cdl;AVB[c]=Coc;Wv[c]=Ch0;AKl[c]=Baz;ARl[c]=B9O;BhB[c]=BPP;AWR[c]=A.Nl;AWL[c]=CzL;A4j[c]=BWg;BFu[c]=B8X;Brq[c]=BLi;Br6[c]=A.Iq;BuK[c]=Cug;BCn[c]=Ctf;Bdw[c]=CrM;A9p[c]=B3b;A75[c]=Cbe;AOg[c]=BcO;AFb[c]=BFU;J$[c]=Bd0;AVD[c] =B4E;ARA[c]=CsF;AIS[c]=CvK;} function Cz9(b){if($rt_resuming()){var $r = $rt_nativeThread().pop();b.$$constructor$$($r);if($rt_suspending()){return $rt_nativeThread().push($r);}return $r;}if(!b.hasOwnProperty('$$constructor$$')){return null;}var $r=new b();b.$$constructor$$($r);if($rt_suspending()){return $rt_nativeThread().push($r);}return $r;} A.VN=function(b){b.a3A();}; @@ -691,12 +691,12 @@ A.Ne=function(a,b){Y();A.X8=1;}; function ACu(){E.call(this);} A.YT=null;A.YU=null;A.YV=function(){var a=new ACu();Bwh(a);return a;}; function Bwh(a){return;} -function Bi6(){var b,c,d,e,f,g,h,i,j,k,l,m,$$je,$p,$z;$p=0;if(ZL()){var $T=Md();$p=$T.l();m=$T.l();l=$T.l();k=$T.l();j=$T.l();i=$T.l();h=$T.l();g=$T.l();f=$T.l();e=$T.l();d=$T.l();c=$T.l();b=$T.l();}_:while(true){switch($p){case 0:Y();b=new LK;c=A.XM.createTexture();b.u9=(-1);b.u$=(-1);b.ya=1;b.x0=0;b.fZ=c;A.XM.activeTexture(33984);c=A.XM;d=b.fZ;c.bindTexture(3553,d);A.XM.texParameteri(3553,10240,9728);A.XM.texParameteri(3553,10241,9728);A.XM.texParameteri(3553,10242,33071);A.XM.texParameteri(3553,10243,33071);c +function Bi6(){var b,c,d,e,f,g,h,i,j,k,l,m,$$je,$p,$z;$p=0;if(ZL()){var $T=Md();$p=$T.l();m=$T.l();l=$T.l();k=$T.l();j=$T.l();i=$T.l();h=$T.l();g=$T.l();f=$T.l();e=$T.l();d=$T.l();c=$T.l();b=$T.l();}_:while(true){switch($p){case 0:Y();b=new LK;c=A.XM.createTexture();b.u9=(-1);b.u$=(-1);b.ya=1;b.x0=0;b.fZ=c;A.XM.activeTexture(33984);c=A.XM;d=b.fZ;c.bindTexture(3553,d);A.XM.texParameteri(3553,10240,9728);A.XM.texParameteri(3553,10241,9728);A.XM.texParameteri(3553,10242,10497);A.XM.texParameteri(3553,10243,10497);c =NT(AQ4(B(207)));d=Bp6(36864);BsZ(d,c.eK);Vg(d);Ym(3553,0,6408,192,192,0,6408,5121,d);Brz(d);D4(d,$rt_floatToIntBits(0.0));D4(d,$rt_floatToIntBits(0.0));D4(d,$rt_floatToIntBits(0.0));D4(d,$rt_floatToIntBits(1.0));D4(d,$rt_floatToIntBits(1.0));D4(d,$rt_floatToIntBits(0.0));D4(d,$rt_floatToIntBits(1.0));D4(d,$rt_floatToIntBits(0.0));D4(d,$rt_floatToIntBits(0.0));D4(d,$rt_floatToIntBits(1.0));D4(d,$rt_floatToIntBits(1.0));D4(d,$rt_floatToIntBits(1.0));Vg(d);A.YT=V9();Na(34962,A.YT);UZ(34962,d,35044);e=OI(35633);Mo(e, BH(V(V(BP(),Mw()),B(208))));Mq(e);f=OI(35632);Mo(f,BH(V(V(BP(),Mw()),B(209))));Mq(f);A.YU=Y4();Mc(A.YU,e);Mc(A.YU,f);VY(A.YU);L3(A.YU,e);L3(A.YU,f);ML(e);ML(f);try{g=Long_fromInt(50);$p=1;continue _;}catch($$e){$$je=Bw($$e);if($$je instanceof EV){h=$$je;}else{throw $$e;}}h.oL();Jm(A.YU);Oq(A.YU,0,B(210));P$(DA(A.YU,B(211)),0);i=Hf();j=GZ();if(i<=j){k=1.0;l=j/i;}else{k=i/j;l=1.0;}ANK(33984);Rc(3553,b);I3(0,0,i,j);AO5(1.0,1.0,1.0,1.0);ATV(16640);AD_(DA(A.YU,B(212)),k,l);m=OP();N8(m);Qf(0);Pr(0,2,5126,0,8,0);W7(4, 0,6);WQ(0);$p=2;continue _;case 1:a:{try{A_E(g);if(C()){break _;}break a;}catch($$e){$$je=Bw($$e);if($$je instanceof EV){h=$$je;}else{throw $$e;}}h.oL();}Jm(A.YU);Oq(A.YU,0,B(210));P$(DA(A.YU,B(211)),0);i=Hf();j=GZ();if(i<=j){k=1.0;l=j/i;}else{k=i/j;l=1.0;}ANK(33984);Rc(3553,b);I3(0,0,i,j);AO5(1.0,1.0,1.0,1.0);ATV(16640);AD_(DA(A.YU,B(212)),k,l);m=OP();N8(m);Qf(0);Pr(0,2,5126,0,8,0);W7(4,0,6);WQ(0);$p=2;case 2:Bic();if(C()){break _;}Jm(null);Na(34962,null);Rc(3553,null);AMl(b);AKv(m);return;default:Zu();}}Md().s(b, c,d,e,f,g,h,i,j,k,l,m,$p);} -function A9k(){var b,c,d,e,f,g,h,i,j,k,l,m,$$je,$p,$z;$p=0;if(ZL()){var $T=Md();$p=$T.l();m=$T.l();l=$T.l();k=$T.l();j=$T.l();i=$T.l();h=$T.l();g=$T.l();f=$T.l();e=$T.l();d=$T.l();c=$T.l();b=$T.l();}_:while(true){switch($p){case 0:Y();b=new LK;c=A.XM.createTexture();b.u9=(-1);b.u$=(-1);b.ya=1;b.x0=0;b.fZ=c;A.XM.activeTexture(33984);c=A.XM;d=b.fZ;c.bindTexture(3553,d);A.XM.texParameteri(3553,10240,9728);A.XM.texParameteri(3553,10241,9728);A.XM.texParameteri(3553,10242,33071);A.XM.texParameteri(3553,10243,33071);c +function A9k(){var b,c,d,e,f,g,h,i,j,k,l,m,$$je,$p,$z;$p=0;if(ZL()){var $T=Md();$p=$T.l();m=$T.l();l=$T.l();k=$T.l();j=$T.l();i=$T.l();h=$T.l();g=$T.l();f=$T.l();e=$T.l();d=$T.l();c=$T.l();b=$T.l();}_:while(true){switch($p){case 0:Y();b=new LK;c=A.XM.createTexture();b.u9=(-1);b.u$=(-1);b.ya=1;b.x0=0;b.fZ=c;A.XM.activeTexture(33984);c=A.XM;d=b.fZ;c.bindTexture(3553,d);A.XM.texParameteri(3553,10240,9728);A.XM.texParameteri(3553,10241,9728);A.XM.texParameteri(3553,10242,10497);A.XM.texParameteri(3553,10243,10497);c =NT(AAh(AGj(0,A.Yz,0,A.YA),N7(B(213),Jf(B(2)))));Bt();if(!A.YW)e=L1(HF(65536));else{f=$rt_createIntArray(16384);g=f.data.length;e=new No;h=0+g|0;e.c2=(-1);e.d8=g;e.bi=g;e.W=0;e.bi=h;e.Av=0;e.Ce=0;e.Bf=f;}f=c.eK;S1(e,f,0,f.data.length);e.bi=e.W;e.W=0;e.c2=(-1);Ym(3553,0,6408,128,128,0,6408,5121,e);try{i=Long_fromInt(50);$p=1;continue _;}catch($$e){$$je=Bw($$e);if($$je instanceof EV){j=$$je;}else{throw $$e;}}j.oL();Jm(A.YU);h=A.XK.clientWidth;c=A.XL;d=h;c.width=d;k=A.XK.clientHeight;c=A.XL;d=k;c.height=d;if(h <=k){l=1.0;m=k/h;}else{l=h/k;m=1.0;}A.XM.activeTexture(33984);c=A.XM;d=b.fZ;c.bindTexture(3553,d);I3(0,0,h,k);A.XM.clearColor(1.0,1.0,1.0,1.0);A.XM.clear(16640);c=DA(A.YU,B(212));if(c!==null){d=A.XM;c=c.iM;d.uniform2f(c,l,m);}d=OP();N8(d);Na(34962,A.YT);Qf(0);Pr(0,2,5126,0,8,0);W7(4,0,6);WQ(0);$p=2;continue _;case 1:a:{try{A_E(i);if(C()){break _;}break a;}catch($$e){$$je=Bw($$e);if($$je instanceof EV){j=$$je;}else{throw $$e;}}j.oL();}Jm(A.YU);h=A.XK.clientWidth;c=A.XL;d=h;c.width=d;k=A.XK.clientHeight;c=A.XL;d =k;c.height=d;if(h<=k){l=1.0;m=k/h;}else{l=h/k;m=1.0;}A.XM.activeTexture(33984);c=A.XM;d=b.fZ;c.bindTexture(3553,d);I3(0,0,h,k);A.XM.clearColor(1.0,1.0,1.0,1.0);A.XM.clear(16640);c=DA(A.YU,B(212));if(c!==null){d=A.XM;c=c.iM;d.uniform2f(c,l,m);}d=OP();N8(d);Na(34962,A.YT);Qf(0);Pr(0,2,5126,0,8,0);W7(4,0,6);WQ(0);$p=2;case 2:Bic();if(C()){break _;}Jm(null);Na(34962,null);Rc(3553,null);AMl(b);AKv(d);return;default:Zu();}}Md().s(b,c,d,e,f,g,h,i,j,k,l,m,$p);} @@ -767,7 +767,7 @@ function CR(b,c){var d,e;Bt();a:{b:{switch(b){case 0:break;case 1:d=1;break a;ca function GF(b){Bt();Y();A.XM.depthMask(!!b);} function EH(b,c,d,e){Bt();Y();A.XM.colorMask(!!b,!!c,!!d,!!e);} function Fa(){Bt();if(!A.Zo){A.Ze=0;if(A.Zv&&A.Zu!==null&&A.Zu.x0&&A.Zu.ya){A.Ze=1;A.Zf=A.Zu.u9;A.Zg=A.Zu.u$;}}} -function CY(b,c,d){Bt();switch(b){case 2:break;default:}a:{b:{switch(c){case 47:break;case 48:break b;case 72:c=10242;break a;case 73:c=10243;break a;case 151:c=33085;break a;default:break b;}c=10241;break a;}c=10240;}c:{switch(d){case 49:d=9729;break c;case 70:d=9728;break c;case 71:d=33071;break c;case 74:d=10497;break c;case 149:d=9986;break c;case 152:d=9987;break c;case 153:d=9985;break c;case 154:d=9984;break c;default:}}if(!A.Zo&&A.Zu!==null&&c==10240)A.Zu.ya=d!=9728?0:1;Y();A.XM.texParameteri(3553,c, +function CY(b,c,d){Bt();switch(b){case 2:break;default:}a:{b:{switch(c){case 47:break;case 48:break b;case 72:c=10242;break a;case 73:c=10243;break a;case 151:c=33085;break a;default:break b;}c=10241;break a;}c=10240;}c:{switch(d){case 49:d=9729;break c;case 70:d=9728;break c;case 71:d=10497;break c;case 74:d=10497;break c;case 149:d=9986;break c;case 152:d=9987;break c;case 153:d=9985;break c;case 154:d=9984;break c;default:}}if(!A.Zo&&A.Zu!==null&&c==10240)A.Zu.ya=d!=9728?0:1;Y();A.XM.texParameteri(3553,c, d);Fa();} function N0(b,c,d){Bt();switch(b){case 2:break;default:}switch(c){case 150:break;default:}if(!A.Zo&&A.Zu!==null)A.Zu.x0=d<=1.0?0:1;Y();A.XM.texParameterf(3553,34046,d);Fa();} function L0(b,c,d){var e;Bt();e=Cv(b*b+c*c+d*d);A.Zl=b/e;A.Zm=c/e;A.Zn=d/e;} @@ -1215,7 +1215,7 @@ function AA6(b){return b.e8();} function A_i(){Qd.call(this);} function M5(){var a=this;E.call(a);a.eK=null;a.gf=0;a.ix=0;a.D9=0;} function BpJ(a,b,c,d){var e=new M5();CaJ(e,a,b,c,d);return e;} -function CaJ(a,b,c,d,e){var f;if(b.data.length==Bp(c,d)){a.gf=c;a.ix=d;a.D9=e;a.eK=b;return;}f=new B4;f.f=1;f.e=1;f.bf=B(357);H(f);} +function CaJ(a,b,c,d,e){var f,g,h,i;f=b.data;g=f.length;if(g!=Bp(c,d)){h=new B4;h.f=1;h.e=1;h.bf=B(357);H(h);}a:{a.gf=c;a.ix=d;a.D9=e;if(!e){i=0;while(true){if(i>=g)break a;f[i]=f[i]|(-16777216);i=i+1|0;}}}a.eK=b;} function NT(b){var c,d,$$je;a:{try{c=AXj(A.R9(A.Sf(b)));d=BpJ(A2q(c),BBm(c).lo,A3s(c).lo,AIc(c.vq)!=4?0:1);}catch($$e){$$je=Bw($$e);if($$je instanceof Cr){d=$$je;break a;}else if($$je instanceof La){d=$$je;PF(d);return null;}else{throw $$e;}}return d;}PF(d);return null;} function AQT(a,b,c,d,e){var f,g;f=$rt_createIntArray(Bp(d,e));g=0;while(g>24;a.o function AUN(){VV.call(this);} function Cxt(a,b){var c,d;c=a.o_.ev.data;d=a.oe;b=b*4|0;return (c[d+b|0]&255)<<24|(a.o_.ev.data[(a.oe+b|0)+1|0]&255)<<16|(a.o_.ev.data[(a.oe+b|0)+2|0]&255)<<8|a.o_.ev.data[(a.oe+b|0)+3|0]&255;} function CjX(a,b,c){var d,e;d=a.o_.ev.data;e=a.oe;b=b*4|0;d[e+b|0]=c>>24<<24>>24;a.o_.ev.data[(a.oe+b|0)+1|0]=c>>16<<24>>24;a.o_.ev.data[(a.oe+b|0)+2|0]=c>>8<<24>>24;a.o_.ev.data[(a.oe+b|0)+3|0]=c<<24>>24;} +function ANv(){MB.call(this);} function ASA(){MB.call(this);this.a6m=null;} function BCo(a){var b,c,d,e,f,g;if(Long_ne(Long_rem(a.bdH,Long_fromInt(3)),Long_ZERO)){b=new La;b.f=1;b.e=1;b.bf=B(823);H(b);}c=a.bdH.lo/3|0;a.a6m=$rt_createIntArray(c);d=0;while(de){b=new O;b.f=1;b.e=1;H(b);}d=Q(B(929).A,1,e-1|0);}f=CV(A.Yy,d);g -=f===null?null:f.Q;f=g===null?null:Bvf(g,Jf(B(2)));G(b,b.a,f);Mo(c,BH(b));Mq(A.AIY);if(!OB(A.AIY))DR(GJ(),BH(V(V(BP(),IR(BH(V(V(BP(),B(60)),OS(A.AIY))),B(60),B(930))),B(60))));Rc(3553,A.AIQ);J4(3553,10240,9728);J4(3553,10241,9728);J4(3553,10242,33071);J4(3553,10243,33071);Rc(3553,A.AIR);J4(3553,10240,9728);J4(3553,10241,9728);J4(3553,10242,33071);J4(3553,10243,33071);AGW(36160,A.AIP);AE8(36064,A.AIQ);AE8(33306,A.AIR);AGW(36160,null);A.AIW=OP();A.AIX=V9();Bt();b=A.YW?AM7($rt_createIntArray(12)):L1(AHI(UI(48), +=f===null?null:f.Q;f=g===null?null:Bvf(g,Jf(B(2)));G(b,b.a,f);Mo(c,BH(b));Mq(A.AIY);if(!OB(A.AIY))DR(GJ(),BH(V(V(BP(),IR(BH(V(V(BP(),B(60)),OS(A.AIY))),B(60),B(930))),B(60))));Rc(3553,A.AIQ);J4(3553,10240,9728);J4(3553,10241,9728);J4(3553,10242,10497);J4(3553,10243,10497);Rc(3553,A.AIR);J4(3553,10240,9728);J4(3553,10241,9728);J4(3553,10242,10497);J4(3553,10243,10497);AGW(36160,A.AIP);AE8(36064,A.AIQ);AE8(33306,A.AIR);AGW(36160,null);A.AIW=OP();A.AIX=V9();Bt();b=A.YW?AM7($rt_createIntArray(12)):L1(AHI(UI(48), ABI()));D4(b,FW(0.0));D4(b,FW(0.0));D4(b,FW(0.0));D4(b,FW(1.0));D4(b,FW(1.0));D4(b,FW(0.0));D4(b,FW(1.0));D4(b,FW(0.0));D4(b,FW(1.0));D4(b,FW(1.0));D4(b,FW(0.0));D4(b,FW(1.0));Vg(b);Na(34962,A.AIX);UZ(34962,b,35044);N8(A.AIW);Qf(0);Pr(0,2,5126,0,8,0);} function Mf(){var b,c,d,e,f,g,h;if(A.Xd===null){b=new Bm;b.P=new Hy;c=new M;c.b=$rt_createCharArray(16);b.C=c;b.bd=$rt_createCharArray(32);b.bh=0;c=new Bn;Bo(c,B(2),F(X,0));b.bg=c;A.Xd=b;}d=A.Xd;c=new M;c.b=$rt_createCharArray(16);G(c,c.a,B(931));e=A.AIM.data.length;Bv(c,c.a,e,10);G(c,c.a,B(932));b=Q(c.b,0,c.a);c=d.C;G(c,c.a,b);f=c.a;Bd(c,f,f+1|0);c.b.data[f]=10;Bx(d);g=A.AIM;c=A.AIN;if(c.dW===null){b=new GH;b.lV=c;c.dW=b;}h=MR(c.dW,F(X,0));c=A.AIN;if(c.dM===null){b=new Ga;b.kC=c;c.dM=b;}c=c.dM.d6();while(c.eo()) {b=c.dV();Y();d=A.XM;b=b.vK;d.deleteProgram(b);}VF(A.AIN);VF(A.AIO);BCy(g,h);} @@ -10965,7 +10965,7 @@ A.AWy=0;A.AWz=null;A.AWA=null;A.AWB=null;A.AWC=null;A.AWD=null;A.AWE=null;A.AWF= function Bcw(a){return;} function BvG(){var b,c,d,e;if(A.AWC===null){A.AWF=OP();A.AWG=V9();Bt();b=A.YW?AM7($rt_createIntArray(12)):L1(AHI(UI(48),ABI()));D4(b,FW(0.0));D4(b,FW(0.0));D4(b,FW(0.0));D4(b,FW(1.0));D4(b,FW(1.0));D4(b,FW(0.0));D4(b,FW(0.0));D4(b,FW(1.0));D4(b,FW(1.0));D4(b,FW(1.0));D4(b,FW(1.0));D4(b,FW(0.0));Vg(b);N8(A.AWF);Na(34962,A.AWG);UZ(34962,b,35044);Qf(0);Pr(0,2,5126,0,8,0);c=OI(35633);Mo(c,BH(V(V(V(BP(),Mw()),B(60)),SL(B(929)))));Mq(c);if(!OB(c))DR(GJ(),BH(V(V(BP(),IR(BH(V(V(BP(),B(60)),OS(c))),B(60),B(930))),B(60))));d =OI(35632);Mo(d,BH(V(V(V(BP(),Mw()),B(60)),SL(B(2289)))));Mq(d);if(!OB(d))DR(GJ(),BH(V(V(BP(),IR(BH(V(V(BP(),B(60)),OS(d))),B(60),B(2290))),B(60))));A.AWC=Y4();Mc(A.AWC,c);Mc(A.AWC,d);VY(A.AWC);L3(A.AWC,c);L3(A.AWC,d);ML(c);ML(d);if(!YH(A.AWC)){DR(GJ(),BH(V(V(BP(),IR(BH(V(V(BP(),B(60)),ZC(A.AWC))),B(60),B(2291))),B(60))));A.AWC=null;H(Kp(B(2292)));}Jm(A.AWC);e=DA(A.AWC,B(936));if(e!==null)P$(e,0);A.AWE=DA(A.AWC,B(941));}XK();A.AWy=1;Y();b=new YM;b.Hm=A.XM.createFramebuffer();A.AWz=b;b=new LK;c=A.XM.createTexture();b.u9 -=(-1);b.u$=(-1);b.ya=1;b.x0=0;b.fZ=c;A.AWD=b;b=A.AWD;c=A.XM;b=b!==null?b.fZ:null;c.bindTexture(3553,b);J4(3553,10240,9728);J4(3553,10241,9728);J4(3553,10242,33071);J4(3553,10243,33071);AEn(3553,0,32849,A.AWH,A.AWI,0,6407,5121,null);A.AWB=BqJ();AP_(A.AWB);Bmq(36012,A.AWH,A.AWI);AGW(36160,A.AWz);AE8(36064,A.AWD);AG0(36096,A.AWB);} +=(-1);b.u$=(-1);b.ya=1;b.x0=0;b.fZ=c;A.AWD=b;b=A.AWD;c=A.XM;b=b!==null?b.fZ:null;c.bindTexture(3553,b);J4(3553,10240,9728);J4(3553,10241,9728);J4(3553,10242,10497);J4(3553,10243,10497);AEn(3553,0,32849,A.AWH,A.AWI,0,6407,5121,null);A.AWB=BqJ();AP_(A.AWB);Bmq(36012,A.AWH,A.AWI);AGW(36160,A.AWz);AE8(36064,A.AWD);AG0(36096,A.AWB);} function Bay(){var b,c,d,e,f,g;XK();A.AWM=1;Y();b=new YM;b.Hm=A.XM.createFramebuffer();A.AWz=b;b=new Z8;b.y8=A.XM.createRenderbuffer();A.AWA=b;b=new Z8;b.y8=A.XM.createRenderbuffer();A.AWB=b;b=A.AWz;c=A.XM;b=b!==null?b.Hm:null;c.bindFramebuffer(36160,b);b=A.AWA;c=A.XM;b=b!==null?b.y8:null;c.bindRenderbuffer(36161,b);d=A.AWK!=2?8:4;e=A.AWH;f=A.AWI;A.XM.renderbufferStorageMultisample(36161,d,32849,e,f);b=A.AWB;c=A.XM;b=b!==null?b.y8:null;c.bindRenderbuffer(36161,b);e=A.AWK!=2?8:4;d=A.AWH;g=A.AWI;A.XM.renderbufferStorageMultisample(36161, e,36012,d,g);AG0(36064,A.AWA);AG0(36096,A.AWB);} function XK(){var b,c;A.AWy=0;A.AWM=0;if(A.AWz!==null){b=A.AWz;Y();c=A.XM;b=b.Hm;c.deleteFramebuffer(b);}if(A.AWA!==null){b=A.AWA;Y();c=A.XM;b=b.y8;c.deleteRenderbuffer(b);}if(A.AWB!==null){b=A.AWB;Y();c=A.XM;b=b.y8;c.deleteRenderbuffer(b);}if(A.AWD!==null){b=A.AWD;Y();c=A.XM;b=b.fZ;c.deleteTexture(b);}A.AWz=null;A.AWA=null;A.AWB=null;A.AWD=null;} @@ -13606,6 +13606,57 @@ function BxD(a){var b,c,d,e,f,g,h;b=a.qB.k-a.qB.c4;c=a.qB.l-a.qB.c3;if(b*b+c*c>2 function AM0(){var a=this;E.call(a);a.bGO=null;a.bwy=null;a.bmn=null;} function A1H(a){var b;b=a.bwy;Dd(b.q,0,b.g,null);b.g=0;b=a.bmn;Dd(b.q,0,b.g,null);b.g=0;} function KD(){RW.call(this);} +function OR(){} +A.A0U=null;A.APQ=null;A.A0V=null;A.AFF=null;A.AFE=null;A.A0W=null;function BtS(){var b,c;A.A0U=B7(16,0.75);b=new P1;b.SN=B(2831);R(A.A0U,B(2831),b);A.APQ=b;c=new P1;c.SN=B(2832);R(A.A0U,B(2832),c);A.A0V=c;c=new P1;c.SN=B(2833);R(A.A0U,B(2833),c);A.AFF=c;c=new P1;c.SN=B(2834);R(A.A0U,B(2834),c);A.AFE=c;c=new APu;c.SN=B(2835);R(A.A0U,B(2835),c);A.A0W=c;} +function AHk(){var a=this;FG.call(a);a.Vu=null;a.a0M=null;a.a7i=null;a.yc=0;a.bcb=null;} +A.A0X=null;function BYC(a,b,c,d){var e=new AHk();Bcd(e,a,b,c,d);return e;} +function Bcd(a,b,c,d,e){Fc(a,A.WF(b,c,d));a.yc=0;a.Vu=c;if(!(e!==null&&e.A.data.length>=1))e=BA(A.ACW,B(2836));a.bcb=e;} +function A6l(a){var b,c,d,e,f,g,h;Uu(a);b=(a.bk-a.fJ|0)/2|0;c=(a.bD-a.fr|0)/2|0;d=a.bV;e=new AAg;f=(b+120|0)+27|0;g=(c+24|0)-1|0;Fx(e,1,f,g,12,19,B(44));e.bbB=1;a.a0M=e;J(d,e);e=a.bV;h=new AAg;Fx(h,2,(b+36|0)-19|0,g,12,19,B(44));h.bbB=0;a.a7i=h;J(e,h);a.a0M.fc=0;a.a7i.fc=0;} +A.Ib=function(a,b,c){Ch(a.bQ,a.bcb,(a.fJ/2|0)-(B9(a.bQ,a.bcb)/2|0)|0,6,4210752,0);Ch(a.bQ,BA(A.ACW,B(1067)),8,(a.fr-96|0)+2|0,4210752,0);}; +function A2d(a){var b,$p,$z;$p=0;if(ZL()){var $T=Md();$p=$T.l();b=$T.l();a=$T.l();}_:while(true){switch($p){case 0:$p=1;case 1:Bqb(a);if(C()){break _;}b=a.Vu.Ws(a.L.w);if(b!==null){a.a0M.fc=a.yc>=(b.g-1|0)?0:1;a.a7i.fc=a.yc<=0?0:1;}return;default:Zu();}}Md().s(a,b,$p);} +function A$8(a,b){var c,d,e,f,$$je;c=0;if(b===a.a0M){a.yc=a.yc+1|0;c=1;}else if(b===a.a7i){a.yc=a.yc-1|0;c=1;}a:{if(c){b=a.hq;c=a.yc;b=b.EV;b.UX=c;PY(b);d=new J2;d.kl=$rt_createByteArray(32);e=new Qa;e.P=d;e.kH=$rt_createByteArray(8);try{E0(e,a.yc);Ko(Un(a.L),X0(B(2837),IY(d)));break a;}catch($$e){$$je=Bw($$e);if($$je instanceof El){f=$$je;}else{throw $$e;}}if(A.Xo===null){d=new Bm;d.P=new Br;b=new M;b.b=$rt_createCharArray(16);d.C=b;d.bd=$rt_createCharArray(32);d.bh=0;b=new Bn;Bo(b,B(2),F(X,0));d.bg=b;A.Xo +=d;}EO(f,A.Xo);}}} +function BsP(a,b,c,d){var e,f,g;Bt();A.Zh=1.0;A.Zi=1.0;A.Zj=1.0;A.Zk=1.0;Bu(A.A0X);CN(a,(a.bk-a.fJ|0)/2|0,(a.bD-a.fr|0)/2|0,0,0,a.fJ,a.fr);e=a.Vu.Ws(a.L.w);if(e!==null&&!(e.g?0:1)){f=a.yc;if(f>=0&&f=0&&h0&&d=0&&d=e.qi.d){d=e.kg===null?0:1;if(!(d&&c.d=a.g)return null;if(f<0)break c;if(f>=a.g)break c;g=a.q.data[f];if(b.o==g.qi.o&&b.d>=g.qi.d){d=g.kg===null?0:1;if(!d&&c===null)break;if((g.kg===null?0:1)&&c!==null&&g.kg.o +==c.o&&c.d>=g.kg.d)break;}f=f+1|0;}return g;}b=new O;b.f=1;b.e=1;H(b);} +function Bsm(a,b){var c,d;c=0;a:{while(c=a.g)break a;d=a.q.data[c];if(ACy(b,d)){b:{if(Bsk(b,d)){if(c<0)break b;if(c>=a.g)break b;a.q.data[c]=b;}return;}b=new O;b.f=1;b.e=1;H(b);}c=c+1|0;}J(a,b);return;}b=new O;b.f=1;b.e=1;H(b);} +function B4e(b){var c,d,e,f,g,h,i,j,k,l,m,n,o,p,$$je;c=new AQD;c.q=F(E,10);d=b.by.cj();if(d<0){b=new Cg;b.f=1;b.e=1;H(b);}d=d<<24>>24&255;e=0;while(e=0){h=b.by.cj();if(h<0){b=new Cg;b.f=1;b.e=1;H(b);}i=h<<24>>24;h=CH(b);f=new Z;f.d=0;f.V=null;f.o=g;f.d=i;f.i=h;if(f.i<0)f.i=0;g=CH(b);if(g<0)j=null;else{k=$rt_createByteArray(g);h=k.data.length;EN(b,k,0,h);l=new HJ;j=new JW;m=new KD;n=new Gf;n.kq=k;n.iJ=0;n.k4=0;n.jW=0+h|0;Jn(m,n,JF(31,0),512,1);m.p3=1;j.by=m;j.lI=(-1);j.lK=$rt_createByteArray(8192);l.by +=j;l.hD=$rt_createByteArray(8);try{j=K$(l);}catch($$e){$$je=Bw($$e);b=$$je;l.by.gF();H(b);}l.by.gF();}f.Y=j;}j=null;h=CH(b);if(h>=0){g=b.by.cj();if(g<0){b=new Cg;b.f=1;b.e=1;H(b);}g=g<<24>>24;o=CH(b);j=new Z;j.d=0;j.V=null;j.o=h;j.d=g;j.i=o;if(j.i<0)j.i=0;g=CH(b);if(g<0)l=null;else{k=$rt_createByteArray(g);h=k.data.length;EN(b,k,0,h);m=new HJ;l=new JW;n=new KD;p=new Gf;p.kq=k;p.iJ=0;p.k4=0;p.jW=0+h|0;Jn(n,p,JF(31,0),512,1);n.p3=1;l.by=n;l.lI=(-1);l.lK=$rt_createByteArray(8192);m.by=l;m.hD=$rt_createByteArray(8);try +{l=K$(m);}catch($$e){$$je=Bw($$e);b=$$je;m.by.gF();H(b);}m.by.gF();}j.Y=l;}l=null;g=b.by.cj();if(g<0){b=new Cg;b.f=1;b.e=1;H(b);}if(!g?0:1)l=BsF(b);g=AZR(b);m=AO6(f,l,j);if(g)m.xV=m.tR;J(c,m);e=e+1|0;}return c;} +function Bzk(){var a=this;Da.call(a);a.PT=null;a.AK=null;a.Uy=0;a.a0f=0;a.bnw=0.0;} +function AFU(a,b,c,d){var e=new Bzk();BUc(e,a,b,c,d);return e;} +function BUc(a,b,c,d,e){Fy(a,b,c.k,c.n,c.l,c.r,c.u,c.s);a.Uy=0;a.a0f=0;a.PT=c;a.AK=d;a.a0f=3;a.bnw=e;} +function A0l(a,b,c,d,e,f,g,h){var i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,$p,$z;$p=0;if(ZL()){var $T=Md();$p=$T.l();w=$T.l();v=$T.l();u=$T.l();t=$T.l();s=$T.l();r=$T.l();q=$T.l();p=$T.l();o=$T.l();n=$T.l();m=$T.l();l=$T.l();k=$T.l();j=$T.l();i=$T.l();h=$T.l();g=$T.l();f=$T.l();e=$T.l();d=$T.l();c=$T.l();b=$T.l();a=$T.l();}_:while(true){switch($p){case 0:i=(a.Uy+c)/a.a0f;d=i*i;j=a.PT.k;k=a.PT.n;l=a.PT.l;m=a.AK.gq;n=a.AK.k-a.AK.gq;o=c;n=m+n*o;m=a.AK.fo+(a.AK.n-a.AK.fo)*o+a.bnw;p=a.AK.gr+(a.AK.l-a.AK.gr)*o;n=n-j;q=d;r=j ++n*q;o=k+(m-k)*q;q=l+(p-l)*q;n=o+a.dG/2.0;a:{s=Kh(a,c);t=s%65536|0;u=s/65536|0;s=A.AAM;d=t/1.0;e=u/1.0;Bt();switch(s){case 99:break;case 100:A.Zs=d;A.Zt=e;break a;default:if(A.Xo===null){v=new Bm;v.P=new Br;b=new M;b.b=$rt_createCharArray(16);v.C=b;v.bd=$rt_createCharArray(32);v.bh=0;b=new Bn;Bo(b,B(2),F(X,0));v.bg=b;A.Xo=v;}w=A.Xo;v=w.C;G(v,v.a,B(239));t=v.a;Bd(v,t,t+1|0);v.b.data[t]=10;Bx(w);break a;}A.Zq=d;A.Zr=e;}A.Zh=1.0;A.Zi=1.0;A.Zj=1.0;A.Zk=1.0;n=r-A.AII;m=o-A.AIJ;p=q-A.AIK;b=A.AAS;v=a.PT;n=n;m=m;p= +p;d=a.PT.J;$p=1;case 1:BEt(b,v,n,m,p,d,c);if(C()){break _;}return;default:Zu();}}Md().s(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,$p);} +function AZ1(a){a.Uy=a.Uy+1|0;if(a.Uy==a.a0f)a.bU=1;} +function BKr(a){return 3;} +function AAF(){Qh.call(this);} +A.A0Y=function(){var a=new AAF();BMj(a);return a;}; +function BMj(a){a.F6=0;a.g3=0;a.lD=$rt_createFloatArray(16);a.dN=0;a.xE=$rt_createFloatArray(4);} +function Tu(){var a=this;DB.call(a);a.yI=0;a.yt=null;a.Wi=0;a.KI=0.0;} +A.A0Z=null;A.A00=null;A.A01=null;A.A02=function(){var a=new Tu();AXQ(a);return a;}; +function AXQ(a){Dr(a);a.yI=0;a.Wi=0;a.KI=0.5;} +function BC3(a){var b,c,d,e,$$je,$p,$z;$p=0;if(ZL()){var $T=Md();$p=$T.l();e=$T.l();d=$T.l();c=$T.l();b=$T.l();a=$T.l();}_:while(true){switch($p){case 0:a.yI=a.yI+1|0;b=(((a.Wi+a.bD|0)+a.bD|0)+24|0)/a.KI;if(a.yI<=b)return;c=a.L.w.hr;d=new Pe;BS();d.cb=Bq();d.b6=0;d.Iv=1;if(!c.eD){c=c.dY;a:{try{Om(c.ko);ON(d,Q4(c.ko));NF(IY(c.ko));break a;}catch($$e){$$je=Bw($$e);if($$je instanceof Cr){d=$$je;}else{throw $$e;}}if(A.Xo===null){e=new Bm;c=new Br;Ho(e);e.P=c;c=new M;Ie(c,16);e.C=c;e.bd=$rt_createCharArray(32);e.bh +=0;c=new Bn;Bo(c,B(2),F(X,0));e.bg=c;A.Xo=e;}EO(d,A.Xo);}}d=a.L;c=null;$p=1;case 1:A0Z(d,c);if(C()){break _;}return;default:Zu();}}Md().s(a,b,c,d,e,$p);} +function Bkk(a,b,c){var d,e,f,$$je,$p,$z;$p=0;if(ZL()){var $T=Md();$p=$T.l();f=$T.l();e=$T.l();d=$T.l();c=$T.l();b=$T.l();a=$T.l();}_:while(true){switch($p){case 0:if(c!=1)return;d=a.L.w.hr;e=new Pe;BS();e.cb=Bq();e.b6=0;e.Iv=1;if(!d.eD){d=d.dY;a:{try{Om(d.ko);ON(e,Q4(d.ko));NF(IY(d.ko));break a;}catch($$e){$$je=Bw($$e);if($$je instanceof Cr){e=$$je;}else{throw $$e;}}if(A.Xo===null){f=new Bm;d=new Br;Ho(f);f.P=d;d=new M;Ie(d,16);f.C=d;f.bd=$rt_createCharArray(32);f.bh=0;d=new Bn;Bo(d,B(2),F(X,0));f.bg=d;A.Xo +=f;}EO(e,A.Xo);}}e=a.L;d=null;$p=1;case 1:A0Z(e,d);if(C()){break _;}return;default:Zu();}}Md().s(a,b,c,d,e,f,$p);} +function A93(a){var b,c,d,e,f,g,h,i,j,k,l,$$je;a:{if(a.yt===null){b=new BI;b.q=F(E,10);a.yt=b;try{b=B(44);c=BH(Hn(Hn(Hn(Hn(V(BP(),B(44)),A.AXd),A.AXe),A.AXa),A.AXb));d=CB5(Long_fromInt(8124371));e=ACO(B(2839)).data.length;f=0;while(f=i)j=i;if(j>1.0)j=1.0;b=j*j*96.0/255.0*255.0|0;CF(e,b,b,b,255);k=a.bD;l=a.e1;m=g*0.015625;e.G=1;e.H=0.0;j=m;e.I=j;P(e,0.0,k,l);l=f;m=a.bD;n=a.e1;k=f*0.015625;e.G=1;i=k;e.H=i;e.I=j;P(e,l,m,n);n=a.e1;k=h*0.015625;e.G=1;e.H=i;i=k;e.I=i;P(e,l,0.0, +n);n=a.e1;e.G=1;e.H=0.0;e.I=i;P(e,0.0,0.0,n);BJ(e);} +function Bc3(a,b,c,d){var e,f,g,h,i,j,k,l,m,n,o,p,q,r;Bdv(a,b,c,d);Ce();e=A.AAV;f=(a.bk/2|0)-137|0;g=a.bD+50|0;h= -(a.yI+d)*a.KI;BT();i=A.AAf;i.bJ=0.0;i.bI=h;i.bK=0.0;i=BD();Cm(A.AAf,i,i);if(A.Y$){if(A.Xo===null){j=new Bm;j.P=new Br;i=new M;i.b=$rt_createCharArray(16);j.C=i;j.bd=$rt_createCharArray(32);j.bh=0;i=new Bn;Bo(i,B(2),F(X,0));j.bg=i;A.Xo=j;}k=A.Xo;i=k.C;G(i,i.a,B(221));l=i.a;Bd(i,l,l+1|0);i.b.data[l]=10;Bx(k);}Bu(A.A00);A.Zh=1.0;A.Zi=1.0;A.Zj=1.0;A.Zk=1.0;CN(a,f,g,0,0,155,44);CN(a,f+155|0,g,0,45,155, +44);CF(e,255,255,255,255);l=g+200|0;m=0;while(m0.0&&n=e.g)break a;e.q.data[h].kN(a.L,b,c);h=h+1|0;}return;}e=new O;e.f=1;e.e=1;H(e);} -function AAF(){Qh.call(this);} -A.A0U=function(){var a=new AAF();BMj(a);return a;}; -function BMj(a){a.F6=0;a.g3=0;a.lD=$rt_createFloatArray(16);a.dN=0;a.xE=$rt_createFloatArray(4);} -function ARk(){var a=this;E.call(a);a.bE8=null;a.brJ=null;a.bpw=null;} -function B4O(a){return a.brJ;} -function BOS(a,b){return;} -function BMq(a,b){return a.bpw;} -function Cgi(a,b){a.bpw=b;} -A.PQ=function(a,b){return;}; -function Vi(){var a=this;Da.call(a);a.rY=null;a.KA=0;a.a4y=0;a.bfG=null;} -A.A0V=function(a,b,c){var d=new Vi();BnX(d,a,b,c);return d;}; -function BnX(a,b,c,d){var $p,$z;$p=0;if(ZL()){var $T=Md();$p=$T.l();d=$T.l();c=$T.l();b=$T.l();a=$T.l();}_:while(true){switch($p){case 0:Fy(a,b,c.k,c.bj.bA+c.cN/2.0,c.l,c.r,c.u,c.s);a.KA=0;a.a4y=0;a.rY=c;a.a4y=3;a.bfG=d;$p=1;case 1:BDF(a);if(C()){break _;}return;default:Zu();}}Md().s(a,b,c,d,$p);} -function Bc4(a,b,c,d,e,f,g,h){return;} -function BDF(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,$p,$z;$p=0;if(ZL()){var $T=Md();$p=$T.l();n=$T.l();m=$T.l();l=$T.l();k=$T.l();j=$T.l();i=$T.l();h=$T.l();g=$T.l();f=$T.l();e=$T.l();d=$T.l();c=$T.l();b=$T.l();a=$T.l();}_:while(true){switch($p){case 0:b=0;c=24;while(b<16){d=a.m;d.h=Long_and(Long_add(Long_mul(d.h,new Long(3740067437, 5)),Long_fromInt(11)),new Long(4294967295, 65535));e=Long_shru(d.h,c).lo/1.6777216E7*2.0-1.0;d=a.m;d.h=Long_and(Long_add(Long_mul(d.h,new Long(3740067437, 5)),Long_fromInt(11)),new Long(4294967295, 65535));f -=Long_shru(d.h,c).lo/1.6777216E7*2.0-1.0;d=a.m;d.h=Long_and(Long_add(Long_mul(d.h,new Long(3740067437, 5)),Long_fromInt(11)),new Long(4294967295, 65535));g=Long_shru(d.h,c).lo/1.6777216E7*2.0-1.0;if(e*e+f*f+g*g<=1.0){h=a.rY.k+e*a.rY.bv/4.0;i=a.rY.bj.bA+a.rY.cN/2.0+f*a.rY.cN/4.0;j=a.rY.l+g*a.rY.bv/4.0;d=a.c;k=a.bfG;l=f+0.2;m=0;if(m=0&&m=a.a4y)a.bU=1;return;case 1:BFQ(n,k,h,i,j,e,l,g);if(C()){break _;}m -=m+1|0;a:while(true){if(m=0&&m=16)break a;d=a.m;d.h=Long_and(Long_add(Long_mul(d.h,new Long(3740067437, 5)),Long_fromInt(11)),new Long(4294967295, 65535));e=Long_shru(d.h,c).lo/1.6777216E7*2.0-1.0;d=a.m;d.h=Long_and(Long_add(Long_mul(d.h,new Long(3740067437, 5)),Long_fromInt(11)),new Long(4294967295, 65535));f=Long_shru(d.h,c).lo/1.6777216E7*2.0-1.0;d=a.m;d.h=Long_and(Long_add(Long_mul(d.h,new Long(3740067437, 5)), -Long_fromInt(11)),new Long(4294967295, 65535));g=Long_shru(d.h,c).lo/1.6777216E7*2.0-1.0;if(e*e+f*f+g*g>1.0)continue;else break;}h=a.rY.k+e*a.rY.bv/4.0;i=a.rY.bj.bA+a.rY.cN/2.0+f*a.rY.cN/4.0;j=a.rY.l+g*a.rY.bv/4.0;d=a.c;k=a.bfG;l=f+0.2;m=0;}a.KA=a.KA+1|0;if(a.KA>=a.a4y)a.bU=1;return;default:Zu();}}Md().s(a,b,c,d,e,f,g,h,i,j,k,l,m,n,$p);} -function B4G(a){return 3;} -function Bzk(){var a=this;Da.call(a);a.PT=null;a.AK=null;a.Uy=0;a.a0f=0;a.bnw=0.0;} -function AFU(a,b,c,d){var e=new Bzk();BUc(e,a,b,c,d);return e;} -function BUc(a,b,c,d,e){Fy(a,b,c.k,c.n,c.l,c.r,c.u,c.s);a.Uy=0;a.a0f=0;a.PT=c;a.AK=d;a.a0f=3;a.bnw=e;} -function A0l(a,b,c,d,e,f,g,h){var i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,$p,$z;$p=0;if(ZL()){var $T=Md();$p=$T.l();w=$T.l();v=$T.l();u=$T.l();t=$T.l();s=$T.l();r=$T.l();q=$T.l();p=$T.l();o=$T.l();n=$T.l();m=$T.l();l=$T.l();k=$T.l();j=$T.l();i=$T.l();h=$T.l();g=$T.l();f=$T.l();e=$T.l();d=$T.l();c=$T.l();b=$T.l();a=$T.l();}_:while(true){switch($p){case 0:i=(a.Uy+c)/a.a0f;d=i*i;j=a.PT.k;k=a.PT.n;l=a.PT.l;m=a.AK.gq;n=a.AK.k-a.AK.gq;o=c;n=m+n*o;m=a.AK.fo+(a.AK.n-a.AK.fo)*o+a.bnw;p=a.AK.gr+(a.AK.l-a.AK.gr)*o;n=n-j;q=d;r=j -+n*q;o=k+(m-k)*q;q=l+(p-l)*q;n=o+a.dG/2.0;a:{s=Kh(a,c);t=s%65536|0;u=s/65536|0;s=A.AAM;d=t/1.0;e=u/1.0;Bt();switch(s){case 99:break;case 100:A.Zs=d;A.Zt=e;break a;default:if(A.Xo===null){v=new Bm;v.P=new Br;b=new M;b.b=$rt_createCharArray(16);v.C=b;v.bd=$rt_createCharArray(32);v.bh=0;b=new Bn;Bo(b,B(2),F(X,0));v.bg=b;A.Xo=v;}w=A.Xo;v=w.C;G(v,v.a,B(239));t=v.a;Bd(v,t,t+1|0);v.b.data[t]=10;Bx(w);break a;}A.Zq=d;A.Zr=e;}A.Zh=1.0;A.Zi=1.0;A.Zj=1.0;A.Zk=1.0;n=r-A.AII;m=o-A.AIJ;p=q-A.AIK;b=A.AAS;v=a.PT;n=n;m=m;p= -p;d=a.PT.J;$p=1;case 1:BEt(b,v,n,m,p,d,c);if(C()){break _;}return;default:Zu();}}Md().s(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,$p);} -function AZ1(a){a.Uy=a.Uy+1|0;if(a.Uy==a.a0f)a.bU=1;} -function BKr(a){return 3;} -function AHk(){var a=this;FG.call(a);a.Vu=null;a.a0M=null;a.a7i=null;a.yc=0;a.bcb=null;} -A.A0W=null;function BYC(a,b,c,d){var e=new AHk();Bcd(e,a,b,c,d);return e;} -function Bcd(a,b,c,d,e){Fc(a,A.WF(b,c,d));a.yc=0;a.Vu=c;if(!(e!==null&&e.A.data.length>=1))e=BA(A.ACW,B(2832));a.bcb=e;} -function A6l(a){var b,c,d,e,f,g,h;Uu(a);b=(a.bk-a.fJ|0)/2|0;c=(a.bD-a.fr|0)/2|0;d=a.bV;e=new AAg;f=(b+120|0)+27|0;g=(c+24|0)-1|0;Fx(e,1,f,g,12,19,B(44));e.bbB=1;a.a0M=e;J(d,e);e=a.bV;h=new AAg;Fx(h,2,(b+36|0)-19|0,g,12,19,B(44));h.bbB=0;a.a7i=h;J(e,h);a.a0M.fc=0;a.a7i.fc=0;} -A.Ib=function(a,b,c){Ch(a.bQ,a.bcb,(a.fJ/2|0)-(B9(a.bQ,a.bcb)/2|0)|0,6,4210752,0);Ch(a.bQ,BA(A.ACW,B(1067)),8,(a.fr-96|0)+2|0,4210752,0);}; -function A2d(a){var b,$p,$z;$p=0;if(ZL()){var $T=Md();$p=$T.l();b=$T.l();a=$T.l();}_:while(true){switch($p){case 0:$p=1;case 1:Bqb(a);if(C()){break _;}b=a.Vu.Ws(a.L.w);if(b!==null){a.a0M.fc=a.yc>=(b.g-1|0)?0:1;a.a7i.fc=a.yc<=0?0:1;}return;default:Zu();}}Md().s(a,b,$p);} -function A$8(a,b){var c,d,e,f,$$je;c=0;if(b===a.a0M){a.yc=a.yc+1|0;c=1;}else if(b===a.a7i){a.yc=a.yc-1|0;c=1;}a:{if(c){b=a.hq;c=a.yc;b=b.EV;b.UX=c;PY(b);d=new J2;d.kl=$rt_createByteArray(32);e=new Qa;e.P=d;e.kH=$rt_createByteArray(8);try{E0(e,a.yc);Ko(Un(a.L),X0(B(2833),IY(d)));break a;}catch($$e){$$je=Bw($$e);if($$je instanceof El){f=$$je;}else{throw $$e;}}if(A.Xo===null){d=new Bm;d.P=new Br;b=new M;b.b=$rt_createCharArray(16);d.C=b;d.bd=$rt_createCharArray(32);d.bh=0;b=new Bn;Bo(b,B(2),F(X,0));d.bg=b;A.Xo -=d;}EO(f,A.Xo);}}} -function BsP(a,b,c,d){var e,f,g;Bt();A.Zh=1.0;A.Zi=1.0;A.Zj=1.0;A.Zk=1.0;Bu(A.A0W);CN(a,(a.bk-a.fJ|0)/2|0,(a.bD-a.fr|0)/2|0,0,0,a.fJ,a.fr);e=a.Vu.Ws(a.L.w);if(e!==null&&!(e.g?0:1)){f=a.yc;if(f>=0&&f=0&&h0&&d=0&&d=e.qi.d){d=e.kg===null?0:1;if(!(d&&c.d=a.g)return null;if(f<0)break c;if(f>=a.g)break c;g=a.q.data[f];if(b.o==g.qi.o&&b.d>=g.qi.d){d=g.kg===null?0:1;if(!d&&c===null)break;if((g.kg===null?0:1)&&c!==null&&g.kg.o -==c.o&&c.d>=g.kg.d)break;}f=f+1|0;}return g;}b=new O;b.f=1;b.e=1;H(b);} -function Bsm(a,b){var c,d;c=0;a:{while(c=a.g)break a;d=a.q.data[c];if(ACy(b,d)){b:{if(Bsk(b,d)){if(c<0)break b;if(c>=a.g)break b;a.q.data[c]=b;}return;}b=new O;b.f=1;b.e=1;H(b);}c=c+1|0;}J(a,b);return;}b=new O;b.f=1;b.e=1;H(b);} -function B4e(b){var c,d,e,f,g,h,i,j,k,l,m,n,o,p,$$je;c=new AQD;c.q=F(E,10);d=b.by.cj();if(d<0){b=new Cg;b.f=1;b.e=1;H(b);}d=d<<24>>24&255;e=0;while(e=0){h=b.by.cj();if(h<0){b=new Cg;b.f=1;b.e=1;H(b);}i=h<<24>>24;h=CH(b);f=new Z;f.d=0;f.V=null;f.o=g;f.d=i;f.i=h;if(f.i<0)f.i=0;g=CH(b);if(g<0)j=null;else{k=$rt_createByteArray(g);h=k.data.length;EN(b,k,0,h);l=new HJ;j=new JW;m=new KD;n=new Gf;n.kq=k;n.iJ=0;n.k4=0;n.jW=0+h|0;Jn(m,n,JF(31,0),512,1);m.p3=1;j.by=m;j.lI=(-1);j.lK=$rt_createByteArray(8192);l.by -=j;l.hD=$rt_createByteArray(8);try{j=K$(l);}catch($$e){$$je=Bw($$e);b=$$je;l.by.gF();H(b);}l.by.gF();}f.Y=j;}j=null;h=CH(b);if(h>=0){g=b.by.cj();if(g<0){b=new Cg;b.f=1;b.e=1;H(b);}g=g<<24>>24;o=CH(b);j=new Z;j.d=0;j.V=null;j.o=h;j.d=g;j.i=o;if(j.i<0)j.i=0;g=CH(b);if(g<0)l=null;else{k=$rt_createByteArray(g);h=k.data.length;EN(b,k,0,h);m=new HJ;l=new JW;n=new KD;p=new Gf;p.kq=k;p.iJ=0;p.k4=0;p.jW=0+h|0;Jn(n,p,JF(31,0),512,1);n.p3=1;l.by=n;l.lI=(-1);l.lK=$rt_createByteArray(8192);m.by=l;m.hD=$rt_createByteArray(8);try -{l=K$(m);}catch($$e){$$je=Bw($$e);b=$$je;m.by.gF();H(b);}m.by.gF();}j.Y=l;}l=null;g=b.by.cj();if(g<0){b=new Cg;b.f=1;b.e=1;H(b);}if(!g?0:1)l=BsF(b);g=AZR(b);m=AO6(f,l,j);if(g)m.xV=m.tR;J(c,m);e=e+1|0;}return c;} -function OR(){} -A.A0X=null;A.APQ=null;A.A0Y=null;A.AFF=null;A.AFE=null;A.A0Z=null;function BtS(){var b,c;A.A0X=B7(16,0.75);b=new P1;b.SN=B(2835);R(A.A0X,B(2835),b);A.APQ=b;c=new P1;c.SN=B(2836);R(A.A0X,B(2836),c);A.A0Y=c;c=new P1;c.SN=B(2837);R(A.A0X,B(2837),c);A.AFF=c;c=new P1;c.SN=B(2838);R(A.A0X,B(2838),c);A.AFE=c;c=new APu;c.SN=B(2839);R(A.A0X,B(2839),c);A.A0Z=c;} +function Bd1(a,b,c,d){var e,f,g,h;GP(a,0);e=A.AAP;f=a.bQ;e=BA(e,B(2847));g=a.bk/2|0;h=(a.bD/2|0)-50|0;Ch(f,e,g-(B9(f,e)/2|0)|0,h,16777215,1);h=0;a:{while(h=e.g)break a;e.q.data[h].kN(a.L,b,c);h=h+1|0;}return;}e=new O;e.f=1;e.e=1;H(e);} function BgC(){var a=this;E.call(a);a.os=0;a.pG=0;a.Bm=0;a.J9=null;a.dj=null;a.lP=0.0;a.lO=0.0;a.lN=0.0;a.vN=null;a.je=0.0;a.ys=null;a.bw6=null;} function KM(a,b,c,d,e,f){var g=new BgC();BJ9(g,a,b,c,d,e,f);return g;} function BJ9(a,b,c,d,e,f,g){var h;a.os=0;a.pG=1;a.Bm=16;a.J9=new Fv;h=new BI;h.q=F(E,10);a.ys=h;a.bw6=B7(16,0.75);a.dj=b;a.vN=c;a.je=g;a.lP=d;a.lO=e;a.lN=f;} @@ -13691,35 +13691,24 @@ function BaF(a,b){var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,$p,$z;$p=0;if(ZL() *f+j*j+l*l);e=f/d;f=j/d;j=l/d;d=0.5/(d/a.je+0.1)*(Bb(a.dj.bt)*Bb(a.dj.bt)+0.30000001192092896);e=e*d;f=f*d;d=j*d;i=a.dj;c=B(721);j=(q+a.lP*1.0)/2.0;k=(r+a.lO*1.0)/2.0;l=(s+a.lN*1.0)/2.0;$p=3;continue _;}if(p<=0)continue;else break;}N();t=A.AA$.data[p];if(t.QS(a))t.j7(a.dj,m,n,o,Bk(a.dj,m,n,o),1.0/a.je,0);i=a.dj;p=0;u=0;v=3;continue _;case 6:ByZ(c,m,n,o,b);if(C()){break _;}while(EF(i)){c=Cx(i);m=c.e5;n=c.fa;o=c.e6;p=L(a.dj,m,n,o);u=L(a.dj,m,n-1|0,o);if(p)continue;N();if(!A.AP8.data[u])continue;if(Gg(a.J9,3))continue;else {c=a.dj;b=A.ADL.j;continue _;}}return;default:Zu();}}Md().s(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,$p);} function ADj(a){return a.vN===null?null:a.vN instanceof W6?a.vN.a99:!(a.vN instanceof C6)?null:a.vN;} -function Tu(){var a=this;DB.call(a);a.yI=0;a.yt=null;a.Wi=0;a.KI=0.0;} -A.A00=null;A.A01=null;A.A02=null;A.A03=function(){var a=new Tu();AXQ(a);return a;}; -function AXQ(a){Dr(a);a.yI=0;a.Wi=0;a.KI=0.5;} -function BC3(a){var b,c,d,e,$$je,$p,$z;$p=0;if(ZL()){var $T=Md();$p=$T.l();e=$T.l();d=$T.l();c=$T.l();b=$T.l();a=$T.l();}_:while(true){switch($p){case 0:a.yI=a.yI+1|0;b=(((a.Wi+a.bD|0)+a.bD|0)+24|0)/a.KI;if(a.yI<=b)return;c=a.L.w.hr;d=new Pe;BS();d.cb=Bq();d.b6=0;d.Iv=1;if(!c.eD){c=c.dY;a:{try{Om(c.ko);ON(d,Q4(c.ko));NF(IY(c.ko));break a;}catch($$e){$$je=Bw($$e);if($$je instanceof Cr){d=$$je;}else{throw $$e;}}if(A.Xo===null){e=new Bm;c=new Br;Ho(e);e.P=c;c=new M;Ie(c,16);e.C=c;e.bd=$rt_createCharArray(32);e.bh -=0;c=new Bn;Bo(c,B(2),F(X,0));e.bg=c;A.Xo=e;}EO(d,A.Xo);}}d=a.L;c=null;$p=1;case 1:A0Z(d,c);if(C()){break _;}return;default:Zu();}}Md().s(a,b,c,d,e,$p);} -function Bkk(a,b,c){var d,e,f,$$je,$p,$z;$p=0;if(ZL()){var $T=Md();$p=$T.l();f=$T.l();e=$T.l();d=$T.l();c=$T.l();b=$T.l();a=$T.l();}_:while(true){switch($p){case 0:if(c!=1)return;d=a.L.w.hr;e=new Pe;BS();e.cb=Bq();e.b6=0;e.Iv=1;if(!d.eD){d=d.dY;a:{try{Om(d.ko);ON(e,Q4(d.ko));NF(IY(d.ko));break a;}catch($$e){$$je=Bw($$e);if($$je instanceof Cr){e=$$je;}else{throw $$e;}}if(A.Xo===null){f=new Bm;d=new Br;Ho(f);f.P=d;d=new M;Ie(d,16);f.C=d;f.bd=$rt_createCharArray(32);f.bh=0;d=new Bn;Bo(d,B(2),F(X,0));f.bg=d;A.Xo -=f;}EO(e,A.Xo);}}e=a.L;d=null;$p=1;case 1:A0Z(e,d);if(C()){break _;}return;default:Zu();}}Md().s(a,b,c,d,e,f,$p);} -function A93(a){var b,c,d,e,f,g,h,i,j,k,l,$$je;a:{if(a.yt===null){b=new BI;b.q=F(E,10);a.yt=b;try{b=B(44);c=BH(Hn(Hn(Hn(Hn(V(BP(),B(44)),A.AXd),A.AXe),A.AXa),A.AXb));d=CB5(Long_fromInt(8124371));e=ACO(B(2840)).data.length;f=0;while(f=i)j=i;if(j>1.0)j=1.0;b=j*j*96.0/255.0*255.0|0;CF(e,b,b,b,255);k=a.bD;l=a.e1;m=g*0.015625;e.G=1;e.H=0.0;j=m;e.I=j;P(e,0.0,k,l);l=f;m=a.bD;n=a.e1;k=f*0.015625;e.G=1;i=k;e.H=i;e.I=j;P(e,l,m,n);n=a.e1;k=h*0.015625;e.G=1;e.H=i;i=k;e.I=i;P(e,l,0.0, -n);n=a.e1;e.G=1;e.H=0.0;e.I=i;P(e,0.0,0.0,n);BJ(e);} -function Bc3(a,b,c,d){var e,f,g,h,i,j,k,l,m,n,o,p,q,r;Bdv(a,b,c,d);Ce();e=A.AAV;f=(a.bk/2|0)-137|0;g=a.bD+50|0;h= -(a.yI+d)*a.KI;BT();i=A.AAf;i.bJ=0.0;i.bI=h;i.bK=0.0;i=BD();Cm(A.AAf,i,i);if(A.Y$){if(A.Xo===null){j=new Bm;j.P=new Br;i=new M;i.b=$rt_createCharArray(16);j.C=i;j.bd=$rt_createCharArray(32);j.bh=0;i=new Bn;Bo(i,B(2),F(X,0));j.bg=i;A.Xo=j;}k=A.Xo;i=k.C;G(i,i.a,B(221));l=i.a;Bd(i,l,l+1|0);i.b.data[l]=10;Bx(k);}Bu(A.A01);A.Zh=1.0;A.Zi=1.0;A.Zj=1.0;A.Zk=1.0;CN(a,f,g,0,0,155,44);CN(a,f+155|0,g,0,45,155, -44);CF(e,255,255,255,255);l=g+200|0;m=0;while(m0.0&&n=0&&m=a.a4y)a.bU=1;return;case 1:BFQ(n,k,h,i,j,e,l,g);if(C()){break _;}m +=m+1|0;a:while(true){if(m=0&&m=16)break a;d=a.m;d.h=Long_and(Long_add(Long_mul(d.h,new Long(3740067437, 5)),Long_fromInt(11)),new Long(4294967295, 65535));e=Long_shru(d.h,c).lo/1.6777216E7*2.0-1.0;d=a.m;d.h=Long_and(Long_add(Long_mul(d.h,new Long(3740067437, 5)),Long_fromInt(11)),new Long(4294967295, 65535));f=Long_shru(d.h,c).lo/1.6777216E7*2.0-1.0;d=a.m;d.h=Long_and(Long_add(Long_mul(d.h,new Long(3740067437, 5)), +Long_fromInt(11)),new Long(4294967295, 65535));g=Long_shru(d.h,c).lo/1.6777216E7*2.0-1.0;if(e*e+f*f+g*g>1.0)continue;else break;}h=a.rY.k+e*a.rY.bv/4.0;i=a.rY.bj.bA+a.rY.cN/2.0+f*a.rY.cN/4.0;j=a.rY.l+g*a.rY.bv/4.0;d=a.c;k=a.bfG;l=f+0.2;m=0;}a.KA=a.KA+1|0;if(a.KA>=a.a4y)a.bU=1;return;default:Zu();}}Md().s(a,b,c,d,e,f,g,h,i,j,k,l,m,n,$p);} +function B4G(a){return 3;} function M1(){var a=this;E.call(a);a.bBN=null;a.bkD=0;a.bIf=0;a.bGa=0.0;} function N4(a,b){var $$je;a.bBN=b;a.bkD=b!==null&&Co(Nl(b),B(2738))?1:0;a:{try{a.bIf=Ly(b);break a;}catch($$e){$$je=Bw($$e);if($$je instanceof Jg){}else{throw $$e;}}}b:{try{a.bGa=BeG(b);break b;}catch($$e){$$je=Bw($$e);if($$je instanceof Jg){}else{throw $$e;}}}} function B3G(a){return a.bkD;} -function ADN(){var a=this;E.call(a);a.bcu=null;a.jQ=null;a.a_P=null;a.Ui=null;a.UX=0;} -A.Fy=function(a,b){return a.jQ.data[b];}; -function A0n(a,b,c){var d,e;if(a.jQ.data[b]===null)return null;if(b==2){d=a.jQ.data[b];a.jQ.data[b]=null;return d;}if(a.jQ.data[b].d<=c){d=a.jQ.data[b];a.jQ.data[b]=null;if(b&&b!=1?0:1)PY(a);return d;}e=JR(a.jQ.data[b],c);if(!a.jQ.data[b].d)a.jQ.data[b]=null;if(b&&b!=1?0:1)PY(a);return e;} -function CmY(a,b){var c;if(a.jQ.data[b]===null)return null;c=a.jQ.data[b];a.jQ.data[b]=null;return c;} -function OE(a,b,c){a.jQ.data[b]=c;if(c!==null&&c.d>64)c.d=64;if(b&&b!=1?0:1)PY(a);} -function B39(a){return 64;} -function A1_(a){PY(a);} -function PY(a){var b,c,d,e,f,g,h,i;a.Ui=null;b=a.jQ.data[0];c=a.jQ.data[1];if(b===null)d=null;else{d=c;c=b;}if(c===null)OE(a,2,null);else{e=a.bcu.Ws(a.a_P);if(e!==null){f=AWm(e,c,d,a.UX);if(f!==null&&!(f.xV64)c.d=64;if(b&&b!=1?0:1)PY(a);} +function B39(a){return 64;} +function A1_(a){PY(a);} +function PY(a){var b,c,d,e,f,g,h,i;a.Ui=null;b=a.jQ.data[0];c=a.jQ.data[1];if(b===null)d=null;else{d=c;c=b;}if(c===null)OE(a,2,null);else{e=a.bcu.Ws(a.a_P);if(e!==null){f=AWm(e,c,d,a.UX);if(f!==null&&!(f.xV=a.iU&&d>=a.i3&&c<(a.iU+a.iY|0)&&d<(a.i3+a.qv|0)?1:0;f=0;g=176;if(!a.fc)g=g+(a.iY*2|0)|0;else if(e)g=g+a.iY|0;if(!a.bbB)f=f+a.qv|0;CN(a,a.iU,a.i3,g,f,a.iY,a.qv);}}; -function Blh(){var b;b=new BG;b.bF=B(2834);b.bB=(-1);J(A.ACo,b);A.A1P=b;} +function Blh(){var b;b=new BG;b.bF=B(2838);b.bB=(-1);J(A.ACo,b);A.A1P=b;} function Ny(){var a=this;HK.call(a);a.a5T=null;a.a6f=0;a.a5V=0;a.JW=0;} A.A1Q=null;function B4T(a,b,c,d){var e;if(a.r3){Bu(A.A1Q);Bt();A.Zh=1.0;A.Zi=1.0;A.Zj=1.0;A.Zk=1.0;a.Jj=c>=a.iU&&d>=a.i3&&c<(a.iU+a.iY|0)&&d<(a.i3+a.qv|0)?1:0;e=0;if(!a.fc)e=e+(a.iY*2|0)|0;else if(a.JW)e=e+(a.iY*1|0)|0;else if(a.Jj)e=e+(a.iY*3|0)|0;CN(a,a.iU,a.i3,e,219,a.iY,a.qv);Bu(a.a5T);CN(a,a.iU+2|0,a.i3+2|0,a.a6f,a.a5V,18,18);}} A.Lv=function(a){return a.JW;}; @@ -14767,7 +14767,7 @@ function(){return A.JE(this);},"bzU",function(){return Crc(this);},"bt9",functio c,d){BkW(this,b,c,d);},"k6",function(){Byn(this);}],AQy,0,E,[],0,3,0,0,ABi,0,ABQ,[],1,0,0,0,Oo,0,ABi,[],0,0,0,0]); $rt_metadata([ABL,0,E,[],1,3,0,0,Kj,0,E,[],0,3,0,0,AIg,0,E,[],0,3,0,0,AOt,0,AIg,[],4,0,0,0,QQ,0,E,[Id],0,3,0,0,BeJ,0,E,[],0,3,0,0,JN,0,DV,[],12,3,0,0,AJg,0,II,[],12,0,0,["a1h",function(b,c,d,e,f){A.GV(this,b,c,d,e,f);}],AJf,0,II,[],12,0,0,["a1h",function(b,c,d,e,f){Cmr(this,b,c,d,e,f);}],AJe,0,II,[],12,0,0,["a1h",function(b,c,d,e,f){BYo(this,b,c,d,e,f);}],AJd,0,II,[],12,0,0,["a1h",function(b,c,d,e,f){BWH(this,b,c,d,e,f);}],FH,0,E,[Id,E8],4,3,0,0,JD,"DecimalFormat$FormatField",14,E,[],3,0,0,0,TS,"DecimalFormat$TextField", 14,E,[JD],0,0,0,["vu",function(b,c){B0Y(this,b,c);},"eL",function(b){return B3K(this,b);},"e8",function(){return BIz(this);}],Hm,0,DV,[],12,3,0,0,AGw,"Currency",8,E,[E8],4,3,0,["en",function(){return BGQ(this);}],Nx,0,E,[],4,3,0,0,BxR,0,E,[],4,0,0,0,AEm,0,E,[],4,3,0,0,ADt,0,E,[],1,3,0,0,TK,0,ADt,[Q_,Id,E8],0,3,0,0,U7,0,TK,[],0,3,0,0,AT_,0,E,[],3,3,0,0,APn,0,E,[AT_],4,0,0,0,KX,0,E,[],3,3,0,0,APm,0,E,[KX],4,0,0,0,XJ,0,UR,[],0,0,0,0,VV,0,T8,[],1,0,0,["Bl",function(){return BQa(this);}],AIT,0,VV,[],0,0,0,["a8x", -function(b){return Cog(this,b);},"VW",function(b,c){BG0(this,b,c);}],AUN,0,VV,[],0,0,0,["a8x",function(b){return Cxt(this,b);},"VW",function(b,c){CjX(this,b,c);}],ASA,0,MB,[],0,3,0,0,ANv,"IDAT",3,MB,[],0,3,0,0,AKg,0,MB,[],0,3,0,0,SE,"Double",15,H$,[F8],0,3,0,["a_0",function(){return A.KN(this);},"en",function(){return B11(this);},"e8",function(){return BUZ(this);}],AGs,0,E,[],0,3,0,0,AD5,0,E,[],0,3,0,0,AHz,0,E,[],0,3,A.SR,0,ADw,0,E,[],0,3,0,0,AJs,0,E,[],0,3,0,0,ALt,0,E,[],0,3,0,0,Sf,0,E,[],0,3,0,0,QR,0,E,[], +function(b){return Cog(this,b);},"VW",function(b,c){BG0(this,b,c);}],AUN,0,VV,[],0,0,0,["a8x",function(b){return Cxt(this,b);},"VW",function(b,c){CjX(this,b,c);}],ANv,"IDAT",3,MB,[],0,3,0,0,ASA,0,MB,[],0,3,0,0,AKg,0,MB,[],0,3,0,0,SE,"Double",15,H$,[F8],0,3,0,["a_0",function(){return A.KN(this);},"en",function(){return B11(this);},"e8",function(){return BUZ(this);}],AGs,0,E,[],0,3,0,0,AD5,0,E,[],0,3,0,0,AHz,0,E,[],0,3,A.SR,0,ADw,0,E,[],0,3,0,0,AJs,0,E,[],0,3,0,0,ALt,0,E,[],0,3,0,0,Sf,0,E,[],0,3,0,0,QR,0,E,[], 0,3,0,0,EB,0,E,[],0,3,ER,0,ASe,0,E,[],3,3,0,0,AKL,0,E,[ASe],0,3,0,0,AQI,0,E,[],0,3,0,0,AWj,0,E,[],3,3,0,0,R$,"RenderGlobal",24,E,[AWj],0,3,0,0,Wf,0,E,[],0,3,0,0,E4,0,E,[],0,3,0,0]); $rt_metadata([Qv,0,IM,[],0,3,0,0,AUH,0,E,[],3,3,0,0,AFT,0,E,[AUH],0,3,0,0,AFK,0,E,[],0,3,0,0,Vd,0,DB,[],0,3,0,["ij",function(){Bdh(this);},"lU",function(b,c){BzJ(this,b,c);},"i1",function(b){Bdt(this,b);},"iC",function(b,c,d){BeR(this,b,c,d);},"k6",function(){BsA(this);}],AHH,0,E,[],0,0,0,0,ADU,0,E,[],4,0,0,0,Ga,0,Le,[],0,0,0,["ce",function(){return Cu0(this);},"d6",function(){return A.C1(this);}],L_,"Long",15,H$,[F8],0,3,0,["en",function(){return BW_(this);},"e8",function(){return ChV(this);},"eL",function(b) {return Ct2(this,b);},"nQ",function(b){return A.Jl(this,b);}],JQ,0,E,[],0,3,0,0,Nm,0,DB,[],0,3,0,["ij",function(){A_L(this);},"uo",function(){Bk_(this);},"iC",function(b,c,d){Bt1(this,b,c,d);},"i1",function(b){BiO(this,b);},"k6",function(){BiD(this);},"lU",function(b,c){A_J(this,b,c);},"vk",function(b,c,d){AWx(this,b,c,d);}],L$,"KeyBinding",24,E,[],0,3,0,0,Ph,"EntityPlayerSP",24,C0,[],0,3,0,["YI",function(b,c,d){BhY(this,b,c,d);},"K5",function(){Bm1(this);},"bhS",function(){return Csb(this);},"ny",function() @@ -15080,13 +15080,13 @@ $rt_metadata([AIZ,0,T4,[KX],0,0,0,["dV",function(){return Cku(this);}],AVi,0,E,[ [],0,3,0,0,AEZ,"IllegalFormatFlagsException",8,HS,[],0,3,0,0,AJQ,"MissingFormatWidthException",8,HS,[],0,3,0,0,AET,0,E,[],3,0,0,0,AQg,0,E,[AET],4,0,0,["blA",function(b,c){Cqo(this,b,c);}],AKw,0,E,[AET],4,0,0,["blA",function(b,c){BLp(this,b,c);}],AP3,0,E,[Im],0,0,0,["tF",function(b){return B42(this,b);}],AP4,0,E,[Im],0,0,0,["tF",function(b){return CdE(this,b);}],AP5,0,E,[Im],0,0,0,["tF",function(b){return B8b(this,b);}],BF6,0,E,[HC],1,3,0,0,AEs,0,IP,[],0,0,0,["d6",function(){return BL$(this);},"ce",function() {return A.FX(this);}],AIt,0,E,[],0,0,BMV,0,QG,0,DV,[],12,3,0,0,Bc7,"Matcher$1",9,E,[],0,0,0,["en",function(){return Crp(this);}],AKD,0,E,[KX],0,0,0,["eo",function(){return BUn(this);},"dV",function(){return B8C(this);},"wb",function(){B1f(this);}]]); $rt_metadata([BrB,0,Do,[],0,3,0,0,Ez,"EnumArt",24,DV,[],12,3,0,0,AKV,0,Pd,[],0,0,0,["cj",function(){return B5B(this);},"DC",function(){return Cbs(this);}],Ug,0,E,[],0,3,0,0,A$a,0,E,[],0,0,0,0,AJA,0,IP,[],0,0,0,0,AG5,0,El,[],0,3,0,0,ARp,"InstantiationException",15,AG5,[],0,3,0,0,WE,"InvalidMarkException",10,Gw,[],0,3,0,0,R1,0,E,[],3,3,0,0,AVF,0,E,[R1],4,0,0,["baw",function(b){return B6s(this,b);}],Lg,0,E,[],0,3,0,0,Lo,0,DV,[],12,3,0,0,YL,0,E,[H9],0,3,0,["js",function(b){return ZE(this,b);},"n2",function(b,c) -{return ARR(this,b,c);},"pM",function(b,c){A9q(this,b,c);},"or",function(){return CbB(this);},"mz",function(){A3N(this);}],AUp,0,Fl,[],0,0,0,0,J0,"EntityDragonPart",24,C1,[],0,3,0,["gO",function(){BIY(this);},"nJ",function(){return BOm(this);},"gG",function(b,c){return BF7(this,b,c);},"bt$",function(b){return CBF(this,b);}],AXG,0,E,[],0,3,0,0,BuO,0,E,[KX],0,0,0,0,ARg,0,E,[],0,3,0,0,ALW,0,E,[],0,3,0,0,ANy,0,E,[],0,3,0,0,AMv,0,E,[],0,3,0,0,AL3,0,E,[],0,3,0,0,AM0,0,E,[],0,3,0,0,KD,0,RW,[],0,3,0,0,ABZ,0,E,[],4, -3,0,0,ACN,0,DB,[],0,3,0,["lU",function(b,c){By6(this,b,c);},"ij",function(){Bye(this);},"k6",function(){Bew(this);},"iC",function(b,c,d){Bd1(this,b,c,d);}],AAF,0,Qh,[],0,3,0,0,ARk,0,E,[ACI],0,3,0,["bq9",function(){return B4O(this);},"bna",function(b){BOS(this,b);},"Ws",function(b){return BMq(this,b);},"buZ",function(b){Cgi(this,b);},"bs9",function(b){A.PQ(this,b);}],Vi,"EntityCrit2FX",24,Da,[],0,3,0,["kP",function(b,c,d,e,f,g,h){Bc4(this,b,c,d,e,f,g,h);},"eY",function(){BDF(this);},"zw",function(){return B4G(this); -}],Bzk,"EntityPickupFX",24,Da,[],0,3,0,["kP",function(b,c,d,e,f,g,h){A0l(this,b,c,d,e,f,g,h);},"eY",function(){AZ1(this);},"zw",function(){return BKr(this);}],AHk,0,FG,[],0,3,0,["ij",function(){A6l(this);},"uX",function(b,c){A.Ib(this,b,c);},"k6",function(){A2d(this);},"i1",function(b){A$8(this,b);},"vC",function(b,c,d){BsP(this,b,c,d);},"iC",function(b,c,d){BtQ(this,b,c,d);}],AQD,0,BI,[],0,3,0,0,OR,0,E,[],3,3,0,0,BgC,0,E,[],0,3,0,0,Tu,0,DB,[],0,3,0,["k6",function(){BC3(this);},"lU",function(b,c){Bkk(this,b, -c);},"ij",function(){A93(this);},"iC",function(b,c,d){Bc3(this,b,c,d);}],M1,"GameRuleValue",24,E,[],0,0,0,0,ADN,0,E,[H9],0,3,0,["js",function(b){return A.Fy(this,b);},"n2",function(b,c){return A0n(this,b,c);},"pM",function(b,c){OE(this,b,c);},"or",function(){return B39(this);},"mz",function(){A1_(this);}],AA4,"MerchantRecipe",24,E,[],0,3,0,0,AUL,0,Qh,[],0,3,0,["a8y",function(){Clj(this);},"bbz",function(b,c){return Cot(this,b,c);},"bcz",function(){B2j(this);},"Ia",function(){return B6l(this);},"xd",function(b, -c){return Cnn(this,b,c);},"bjI",function(){return A.CR(this);},"bcX",function(b,c){return Cfr(this,b,c);}],API,0,Qh,[],0,3,0,["a8y",function(){Cpz(this);},"xd",function(b,c){return Cpe(this,b,c);},"a9z",function(b,c){return Cg4(this,b,c);},"bbz",function(b,c){return Cyd(this,b,c);},"boM",function(){return Cec(this);},"bjI",function(){return A.OX(this);},"Ia",function(){return Ctk(this);},"bfv",function(){return BLV(this);},"bcX",function(b,c){return CfS(this,b,c);}],AVB,0,ME,[],0,3,0,["th",function(b){return BM7(this, -b);},"Ad",function(){A12(this);},"AO",function(){BBx(this);}],BsL,0,Fl,[],0,3,0,["BA",function(b){A.Ec(this,b);},"xw",function(b){AN3(this,b);},"vS",function(b){return B6G(this,b);},"v1",function(b,c){return Bzf(this,b,c);},"Pl",function(b,c){return A.Fa(this,b,c);}],P1,"ScoreDummyCriteria",24,E,[OR],0,3,0,0,APu,"ScoreHealthCriteria",24,P1,[],0,3,0,0,Wv,0,E,[H9],0,3,0,["js",function(b){return A.CB(this,b);},"n2",function(b,c){return BmY(this,b,c);},"pM",function(b,c){UK(this,b,c);},"or",function(){return BSE(this); -},"mz",function(){BAw(this);}],AFA,"SlotCrafting",24,Dh,[],0,3,0,["lG",function(b){return BVl(this,b);},"ZV",function(b){return Bqk(this,b);},"a3R",function(b,c){CkZ(this,b,c);},"Op",function(b,c){Bq_(this,b,c);}],AJ8,"SlotArmor",24,Dh,[],0,0,0,["nn",function(){return CBD(this);},"lG",function(b){return B0v(this,b);},"a1M",function(){return Coq(this);}],AKl,0,E,[],0,3,WN,0,AIF,0,E,[],3,3,0,0]); +{return ARR(this,b,c);},"pM",function(b,c){A9q(this,b,c);},"or",function(){return CbB(this);},"mz",function(){A3N(this);}],AUp,0,Fl,[],0,0,0,0,J0,"EntityDragonPart",24,C1,[],0,3,0,["gO",function(){BIY(this);},"nJ",function(){return BOm(this);},"gG",function(b,c){return BF7(this,b,c);},"bt$",function(b){return CBF(this,b);}],AXG,0,E,[],0,3,0,0,BuO,0,E,[KX],0,0,0,0,ARg,0,E,[],0,3,0,0,ALW,0,E,[],0,3,0,0,ANy,0,E,[],0,3,0,0,AMv,0,E,[],0,3,0,0,AL3,0,E,[],0,3,0,0,AM0,0,E,[],0,3,0,0,KD,0,RW,[],0,3,0,0,OR,0,E,[],3,3, +0,0,AHk,0,FG,[],0,3,0,["ij",function(){A6l(this);},"uX",function(b,c){A.Ib(this,b,c);},"k6",function(){A2d(this);},"i1",function(b){A$8(this,b);},"vC",function(b,c,d){BsP(this,b,c,d);},"iC",function(b,c,d){BtQ(this,b,c,d);}],AQD,0,BI,[],0,3,0,0,Bzk,"EntityPickupFX",24,Da,[],0,3,0,["kP",function(b,c,d,e,f,g,h){A0l(this,b,c,d,e,f,g,h);},"eY",function(){AZ1(this);},"zw",function(){return BKr(this);}],AAF,0,Qh,[],0,3,0,0,Tu,0,DB,[],0,3,0,["k6",function(){BC3(this);},"lU",function(b,c){Bkk(this,b,c);},"ij",function() +{A93(this);},"iC",function(b,c,d){Bc3(this,b,c,d);}],ABZ,0,E,[],4,3,0,0,ACN,0,DB,[],0,3,0,["lU",function(b,c){By6(this,b,c);},"ij",function(){Bye(this);},"k6",function(){Bew(this);},"iC",function(b,c,d){Bd1(this,b,c,d);}],BgC,0,E,[],0,3,0,0,ARk,0,E,[ACI],0,3,0,["bq9",function(){return B4O(this);},"bna",function(b){BOS(this,b);},"Ws",function(b){return BMq(this,b);},"buZ",function(b){Cgi(this,b);},"bs9",function(b){A.PQ(this,b);}],Vi,"EntityCrit2FX",24,Da,[],0,3,0,["kP",function(b,c,d,e,f,g,h){Bc4(this,b,c,d, +e,f,g,h);},"eY",function(){BDF(this);},"zw",function(){return B4G(this);}],M1,"GameRuleValue",24,E,[],0,0,0,0,AA4,"MerchantRecipe",24,E,[],0,3,0,0,ADN,0,E,[H9],0,3,0,["js",function(b){return A.Fy(this,b);},"n2",function(b,c){return A0n(this,b,c);},"pM",function(b,c){OE(this,b,c);},"or",function(){return B39(this);},"mz",function(){A1_(this);}],P1,"ScoreDummyCriteria",24,E,[OR],0,3,0,0,APu,"ScoreHealthCriteria",24,P1,[],0,3,0,0,AUL,0,Qh,[],0,3,0,["a8y",function(){Clj(this);},"bbz",function(b,c){return Cot(this, +b,c);},"bcz",function(){B2j(this);},"Ia",function(){return B6l(this);},"xd",function(b,c){return Cnn(this,b,c);},"bjI",function(){return A.CR(this);},"bcX",function(b,c){return Cfr(this,b,c);}],API,0,Qh,[],0,3,0,["a8y",function(){Cpz(this);},"xd",function(b,c){return Cpe(this,b,c);},"a9z",function(b,c){return Cg4(this,b,c);},"bbz",function(b,c){return Cyd(this,b,c);},"boM",function(){return Cec(this);},"bjI",function(){return A.OX(this);},"Ia",function(){return Ctk(this);},"bfv",function(){return BLV(this); +},"bcX",function(b,c){return CfS(this,b,c);}],AVB,0,ME,[],0,3,0,["th",function(b){return BM7(this,b);},"Ad",function(){A12(this);},"AO",function(){BBx(this);}],BsL,0,Fl,[],0,3,0,["BA",function(b){A.Ec(this,b);},"xw",function(b){AN3(this,b);},"vS",function(b){return B6G(this,b);},"v1",function(b,c){return Bzf(this,b,c);},"Pl",function(b,c){return A.Fa(this,b,c);}],Wv,0,E,[H9],0,3,0,["js",function(b){return A.CB(this,b);},"n2",function(b,c){return BmY(this,b,c);},"pM",function(b,c){UK(this,b,c);},"or",function() +{return BSE(this);},"mz",function(){BAw(this);}],AFA,"SlotCrafting",24,Dh,[],0,3,0,["lG",function(b){return BVl(this,b);},"ZV",function(b){return Bqk(this,b);},"a3R",function(b,c){CkZ(this,b,c);},"Op",function(b,c){Bq_(this,b,c);}],AJ8,"SlotArmor",24,Dh,[],0,0,0,["nn",function(){return CBD(this);},"lG",function(b){return B0v(this,b);},"a1M",function(){return Coq(this);}],AKl,0,E,[],0,3,WN,0,AIF,0,E,[],3,3,0,0]); $rt_metadata([AJ7,0,E,[AIF],0,3,0,0,ARl,0,E,[],0,3,0,0,AOG,0,S4,[],0,3,0,["boS",function(b,c){return BZq(this,b,c);},"bsE",function(){Cg7(this);},"a6w",function(){A.LP(this);},"rl",function(b,c,d){return A.Ma(this,b,c,d);},"Wv",function(b,c,d){return B2J(this,b,c,d);},"bIm",function(b,c,d,e,f){return A8d(this,b,c,d,e,f);},"cK",function(b,c,d){return BIB(this,b,c,d);},"byn",function(b,c,d,e){return BW8(this,b,c,d,e);},"Qr",function(b,c,d,e){return Ctp(this,b,c,d,e);},"bbr",function(b,c,d,e,f){BQ5(this,b,c,d, e,f);},"a49",function(b,c,d,e){return BYi(this,b,c,d,e);},"SA",function(b){Cc9(this,b);},"AD",function(b){CqL(this,b);},"Xu",function(b,c){B8D(this,b,c);},"A0",function(b,c,d){return A.OG(this,b,c,d);},"DQ",function(b,c,d){return B6E(this,b,c,d);},"Pf",function(b,c,d,e){Cdf(this,b,c,d,e);},"M6",function(b,c,d){BHS(this,b,c,d);},"bq4",function(){CoP(this);},"bhe",function(){A.FF(this);},"bqx",function(b,c,d,e){CaT(this,b,c,d,e);},"bk$",function(b,c,d,e){Cmy(this,b,c,d,e);},"xq",function(){return B_U(this);}, "buM",function(b,c){return A.MP(this,b,c);}],UT,0,E,[],0,0,0,0,BhB,0,E,[],0,3,0,0,AWR,0,E,[],0,3,0,0,AWL,0,E,[],0,3,0,0,A4j,0,E,[],0,3,0,0,BFu,0,E,[],0,3,0,0,Brq,0,E,[],0,3,0,0,Br6,0,E,[],0,3,0,0,SS,0,E,[],3,3,0,0,BuK,"RecipesArmorDyes",24,E,[SS],0,3,0,["Qc",function(b,c){return BSh(this,b,c);},"OG",function(b){return CCh(this,b);},"FG",function(){return Cxi(this);}],BCn,"RecipesMapCloning",24,E,[SS],0,3,0,["Qc",function(b,c){return B$9(this,b,c);},"OG",function(b){return Cef(this,b);},"FG",function(){return BYh(this); @@ -15231,7 +15231,7 @@ function $rt_array(cls,data){this.iP=null;this.$id$=0;this.type=cls;this.data=da "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","https","addServer.SSLWarn1","addServer.SSLWarn2","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","multiplayer.downloadingTerrain","entity.Villager.name","MC|TrSel","/gui/trading.png","dummy","deathCount","playerKillCount","totalKillCount","health","/title/win.txt","PLAYERNAME","XXXXXXXX","/title/credits.txt","\t"," ","[C]","%blur%/gui/background.png","###","#W#","#X#","XXX","##","X#X","# #"," X ","AAA","BEB","CCC"," # ","X X","XRX","XSX"," B ","A "," B","# ","## "," #"," #X","# X","# "," X","III", +"CREATIVE","creative","ADVENTURE","adventure","doFireTick","doMobSpawning","commandBlockOutput","vines","dummy","deathCount","playerKillCount","totalKillCount","health","entity.Villager.name","MC|TrSel","/gui/trading.png","/title/win.txt","PLAYERNAME","XXXXXXXX","/title/credits.txt","\t"," ","[C]","%blur%/gui/background.png","multiplayer.downloadingTerrain","###","#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", @@ -15282,7 +15282,7 @@ function countdown() {

you are running eaglercraft locally, check this link regularly for an updated version

-

the version you are currently using is from 1/15/2022

+

the version you are currently using is from 1/16/2022

(Game will launch in 5)