From e313e98f66f12337adf69b8b1a18237f9590dc6d Mon Sep 17 00:00:00 2001 From: ayunami2000 Date: Sun, 16 Jan 2022 20:51:17 -0500 Subject: [PATCH] maybe flight is better --- javascript/classes.js | 1850 ++++++++--------- .../ayuncraft/GuiScreenModules.java | 4 +- 2 files changed, 927 insertions(+), 927 deletions(-) diff --git a/javascript/classes.js b/javascript/classes.js index 4edd7d3..17316df 100644 --- a/javascript/classes.js +++ b/javascript/classes.js @@ -1186,8 +1186,8 @@ function nle_Client_main($args) { nms_WorldType__clinit_(); nms_EnumGameType__clinit_(); nms_ScoreObjectiveCriteria__clinit_(); - nms_GuiMerchant__clinit_(); nms_GuiWinGame__clinit_(); + nms_GuiMerchant__clinit_(); nms_GuiChest__clinit_(); nms_GuiCrafting__clinit_(); nms_GuiBeacon__clinit_(); @@ -2146,9 +2146,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_; @@ -56368,10 +56368,10 @@ 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() { +function cbpc_IEND() { cbpc_Chunk.call(this); } -function cbpc_IEND() { +function cbpc_IDAT() { cbpc_Chunk.call(this); } function cbpc_PLTE() { @@ -190880,7 +190880,7 @@ $java.maa_GuiScreenModules_actionPerformed = function($this, $par1GuiButton) { maa_NoteblockPlayer_$callClinit(); maa_NoteblockPlayer_legit = maa_NoteblockPlayer_legit ? 0 : 1; } else if ($par1GuiButton.$id2 == 4) - $this.$mc4.$thePlayer.$noClip = $this.$mc4.$thePlayer.$noClip ? 0 : 1; + $this.$mc4.$thePlayer.$capabilities.$isFlying = $this.$mc4.$thePlayer.$capabilities.$isFlying ? 0 : 1; } else { maa_NoteblockPlayer_$callClinit(); if (!maa_NoteblockPlayer_playing) { @@ -207861,6 +207861,691 @@ function nms_EntitySenses_clearSensingCache($this) { function cjj_GZIPInputStream() { cjj_InflaterInputStream.call(this); } +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); +} +$java.nms_WorldSettings = function() { + 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; +}; +$java.nms_GuiDownloadTerrain = function() { + var a = this; nms_GuiScreen.call(a); + a.$netHandler = null; + a.$updateCounter1 = 0; +}; +$java.nms_GuiDownloadTerrain_keyTyped = function($this, $par1, $par2) { + return; +}; +$java.nms_GuiDownloadTerrain_initGui = function($this) { + var var$1; + var$1 = $this.$buttonList; + ju_Arrays_fill(var$1.$array1, 0, var$1.$size0, null); + var$1.$size0 = 0; +}; +$java.nms_GuiDownloadTerrain_updateScreen = function($this) { + var var$1, var$2, var$3, $$je, $ptr, $tmp; + $ptr = 0; + if ($rt_resuming()) { + var $thread = $rt_nativeThread(); + $ptr = $thread.pop();var$3 = $thread.pop();var$2 = $thread.pop();var$1 = $thread.pop();$this = $thread.pop(); + } + main: while (true) { switch ($ptr) { + case 0: + $this.$updateCounter1 = $this.$updateCounter1 + 1 | 0; + if (!($this.$updateCounter1 % 20 | 0)) { + var$1 = $this.$netHandler; + var$2 = new nms_Packet0KeepAlive; + nms_Packet_$callClinit(); + var$2.$creationTimeMillis = jl_System_currentTimeMillis(); + var$2.$isChunkDataPacket = 0; + if (!var$1.$disconnected) { + var$1 = var$1.$netManager; + a: { + try { + ji_ByteArrayOutputStream_reset(var$1.$sendBuffer); + nms_Packet_writePacket(var$2, ji_DataOutputStream__init_(var$1.$sendBuffer)); + nlea_EaglerAdapterImpl2_writePacket(ji_ByteArrayOutputStream_toByteArray(var$1.$sendBuffer)); + break a; + } catch ($$e) { + $$je = $rt_wrapException($$e); + if ($$je instanceof ji_IOException) { + var$1 = $$je; + } else { + throw $$e; + } + } + if (jl_System_errCache === null) { + var$3 = new ji_PrintStream; + var$3.$out = new jl_ConsoleOutputStreamStderr; + var$2 = new jl_StringBuilder; + jl_Object__init_0(var$2); + var$2.$buffer = $rt_createCharArray(16); + var$3.$sb = var$2; + var$3.$buffer0 = $rt_createCharArray(32); + var$3.$autoFlush = 0; + var$2 = new jnci_UTF8Charset; + jnc_Charset__init_(var$2, $rt_s(2), $rt_createArray(jl_String, 0)); + var$3.$charset = var$2; + jl_System_errCache = var$3; + } + jl_Throwable_printStackTrace0(var$1, jl_System_errCache); + } + } + } + if ($this.$netHandler === null) + return; + var$1 = $this.$netHandler; + $ptr = 1; + case 1: + $java.nms_NetClientHandler_processReadPackets(var$1); + if ($rt_suspending()) { + break main; + } + return; + default: $rt_invalidPointer(); + }} + $rt_nativeThread().push($this, var$1, var$2, var$3, $ptr); +}; +$java.nms_GuiDownloadTerrain_drawScreen = function($this, $par1, $par2, $par3) { + var $var4, var$5, var$6, var$7; + nms_GuiScreen_drawBackground($this, 0); + $var4 = nms_StringTranslate_instance; + var$5 = $this.$fontRenderer0; + $var4 = nms_StringTranslate_translateKey($var4, $rt_s(2859)); + 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_EntityPickupFX() { + var a = this; nms_EntityFX.call(a); + a.$entityToPickUp = null; + a.$entityPickingUp = null; + a.$age0 = 0; + a.$maxAge = 0; + a.$yOffs = 0.0; +} +function nms_EntityPickupFX__init_(var_0, var_1, var_2, var_3) { + var var_4 = new nms_EntityPickupFX(); + $java.nms_EntityPickupFX__init_(var_4, var_0, var_1, var_2, var_3); + return var_4; +} +$java.nms_EntityPickupFX__init_ = function($this, $par1World, $par2Entity, $par3Entity, $par4) { + $java.nms_EntityFX__init_2($this, $par1World, $par2Entity.$posX, $par2Entity.$posY, $par2Entity.$posZ, $par2Entity.$motionX, $par2Entity.$motionY, $par2Entity.$motionZ); + $this.$age0 = 0; + $this.$maxAge = 0; + $this.$entityToPickUp = $par2Entity; + $this.$entityPickingUp = $par3Entity; + $this.$maxAge = 3; + $this.$yOffs = $par4; +}; +$java.nms_EntityPickupFX_renderParticle = function($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7) { + var $var8, $var9, $var11, $var13, $var17, $var15, $var23, $var19, $var25, $var21, $var30, $var31, $var32, var$21, var$22, $ptr, $tmp; + $ptr = 0; + if ($rt_resuming()) { + var $thread = $rt_nativeThread(); + $ptr = $thread.pop();var$22 = $thread.pop();var$21 = $thread.pop();$var32 = $thread.pop();$var31 = $thread.pop();$var30 = $thread.pop();$var21 = $thread.pop();$var25 = $thread.pop();$var19 = $thread.pop();$var23 = $thread.pop();$var15 = $thread.pop();$var17 = $thread.pop();$var13 = $thread.pop();$var11 = $thread.pop();$var9 = $thread.pop();$var8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1Tessellator + = $thread.pop();$this = $thread.pop(); + } + main: while (true) { switch ($ptr) { + case 0: + $var8 = ($this.$age0 + $par2) / $this.$maxAge; + $par3 = $var8 * $var8; + $var9 = $this.$entityToPickUp.$posX; + $var11 = $this.$entityToPickUp.$posY; + $var13 = $this.$entityToPickUp.$posZ; + $var17 = $this.$entityPickingUp.$lastTickPosX; + $var15 = $this.$entityPickingUp.$posX - $this.$entityPickingUp.$lastTickPosX; + $var23 = $par2; + $var15 = $var17 + $var15 * $var23; + $var17 = $this.$entityPickingUp.$lastTickPosY + ($this.$entityPickingUp.$posY - $this.$entityPickingUp.$lastTickPosY) * $var23 + $this.$yOffs; + $var19 = $this.$entityPickingUp.$lastTickPosZ + ($this.$entityPickingUp.$posZ - $this.$entityPickingUp.$lastTickPosZ) * $var23; + $var15 = $var15 - $var9; + $var25 = $par3; + $var21 = $var9 + $var15 * $var25; + $var23 = $var11 + ($var17 - $var11) * $var25; + $var25 = $var13 + ($var19 - $var13) * $var25; + $var15 = $var23 + $this.$yOffset0 / 2.0; + a: { + $var30 = nms_Entity_getBrightnessForRender($this, $par2); + $var31 = $var30 % 65536 | 0; + $var32 = $var30 / 65536 | 0; + $var30 = nms_OpenGlHelper_lightmapTexUnit; + $par3 = $var31 / 1.0; + $par4 = $var32 / 1.0; + nleg_EaglerAdapterGL30_$callClinit(); + switch ($var30) { + case 99: + break; + case 100: + nleg_EaglerAdapterGL30_tex1X = $par3; + nleg_EaglerAdapterGL30_tex1Y = $par4; + break a; + default: + if (jl_System_errCache === null) { + var$21 = new ji_PrintStream; + var$21.$out = new jl_ConsoleOutputStreamStderr; + $par1Tessellator = new jl_StringBuilder; + $par1Tessellator.$buffer = $rt_createCharArray(16); + var$21.$sb = $par1Tessellator; + var$21.$buffer0 = $rt_createCharArray(32); + var$21.$autoFlush = 0; + $par1Tessellator = new jnci_UTF8Charset; + jnc_Charset__init_($par1Tessellator, $rt_s(2), $rt_createArray(jl_String, 0)); + var$21.$charset = $par1Tessellator; + jl_System_errCache = var$21; + } + var$22 = jl_System_errCache; + var$21 = var$22.$sb; + jl_AbstractStringBuilder_insert(var$21, var$21.$length, $rt_s(239)); + $var31 = var$21.$length; + jl_AbstractStringBuilder_insertSpace(var$21, $var31, $var31 + 1 | 0); + var$21.$buffer.data[$var31] = 10; + ji_PrintStream_printSB(var$22); + break a; + } + nleg_EaglerAdapterGL30_tex0X = $par3; + nleg_EaglerAdapterGL30_tex0Y = $par4; + } + nleg_EaglerAdapterGL30_colorR = 1.0; + nleg_EaglerAdapterGL30_colorG = 1.0; + nleg_EaglerAdapterGL30_colorB = 1.0; + nleg_EaglerAdapterGL30_colorA = 1.0; + $var15 = $var21 - nms_EntityFX_interpPosX; + $var17 = $var23 - nms_EntityFX_interpPosY; + $var19 = $var25 - nms_EntityFX_interpPosZ; + $par1Tessellator = nms_RenderManager_instance; + var$21 = $this.$entityToPickUp; + $var15 = $var15; + $var17 = $var17; + $var19 = $var19; + $par3 = $this.$entityToPickUp.$rotationYaw; + $ptr = 1; + case 1: + nms_RenderManager_renderEntityWithPosYaw($par1Tessellator, var$21, $var15, $var17, $var19, $par3, $par2); + if ($rt_suspending()) { + break main; + } + return; + default: $rt_invalidPointer(); + }} + $rt_nativeThread().push($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7, $var8, $var9, $var11, $var13, $var17, $var15, $var23, $var19, $var25, $var21, $var30, $var31, $var32, var$21, var$22, $ptr); +}; +$java.nms_EntityPickupFX_onUpdate = function($this) { + $this.$age0 = $this.$age0 + 1 | 0; + if ($this.$age0 == $this.$maxAge) + $this.$isDead = 1; +}; +$java.nms_EntityPickupFX_getFXLayer = function($this) { + return 3; +}; +function nms_ScoreObjectiveCriteria() { +} +$java.nms_ScoreObjectiveCriteria_field_96643_a = null; +$java.nms_ScoreObjectiveCriteria_field_96641_b = null; +$java.nms_ScoreObjectiveCriteria_field_96642_c = null; +var nms_ScoreObjectiveCriteria_field_96639_d = null; +var nms_ScoreObjectiveCriteria_field_96640_e = null; +$java.nms_ScoreObjectiveCriteria_field_96638_f = null; +function nms_ScoreObjectiveCriteria__clinit_() { + var var$1, var$2; + $java.nms_ScoreObjectiveCriteria_field_96643_a = ju_HashMap__init_1(16, 0.75); + var$1 = new $java.nms_ScoreDummyCriteria; + var$1.$field_96644_g = $rt_s(2860); + ju_HashMap_putImpl($java.nms_ScoreObjectiveCriteria_field_96643_a, $rt_s(2860), var$1); + $java.nms_ScoreObjectiveCriteria_field_96641_b = var$1; + var$2 = new $java.nms_ScoreDummyCriteria; + var$2.$field_96644_g = $rt_s(2861); + ju_HashMap_putImpl($java.nms_ScoreObjectiveCriteria_field_96643_a, $rt_s(2861), var$2); + $java.nms_ScoreObjectiveCriteria_field_96642_c = var$2; + var$2 = new $java.nms_ScoreDummyCriteria; + var$2.$field_96644_g = $rt_s(2862); + ju_HashMap_putImpl($java.nms_ScoreObjectiveCriteria_field_96643_a, $rt_s(2862), var$2); + nms_ScoreObjectiveCriteria_field_96639_d = var$2; + var$2 = new $java.nms_ScoreDummyCriteria; + var$2.$field_96644_g = $rt_s(2863); + ju_HashMap_putImpl($java.nms_ScoreObjectiveCriteria_field_96643_a, $rt_s(2863), var$2); + nms_ScoreObjectiveCriteria_field_96640_e = var$2; + var$2 = new $java.nms_ScoreHealthCriteria; + var$2.$field_96644_g = $rt_s(2864); + ju_HashMap_putImpl($java.nms_ScoreObjectiveCriteria_field_96643_a, $rt_s(2864), var$2); + $java.nms_ScoreObjectiveCriteria_field_96638_f = var$2; +} +function nms_GuiWinGame() { + var a = this; nms_GuiScreen.call(a); + a.$updateCounter3 = 0; + a.$lines = null; + a.$field_73989_c = 0; + a.$field_73987_d = 0.0; +} +$java.nms_GuiWinGame_bk = null; +$java.nms_GuiWinGame_mclogo = null; +$java.nms_GuiWinGame_vigg = null; +$java.nms_GuiWinGame__init_ = function() { + var var_0 = new nms_GuiWinGame(); + nms_GuiWinGame__init_(var_0); + return var_0; +}; +function nms_GuiWinGame__init_($this) { + nms_GuiScreen__init_($this); + $this.$updateCounter3 = 0; + $this.$field_73989_c = 0; + $this.$field_73987_d = 0.5; +} +$java.nms_GuiWinGame_updateScreen = function($this) { + var $var1, var$2, var$3, var$4, $$je, $ptr, $tmp; + $ptr = 0; + if ($rt_resuming()) { + var $thread = $rt_nativeThread(); + $ptr = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();var$2 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); + } + main: while (true) { switch ($ptr) { + case 0: + $this.$updateCounter3 = $this.$updateCounter3 + 1 | 0; + $var1 = ((($this.$field_73989_c + $this.$height0 | 0) + $this.$height0 | 0) + 24 | 0) / $this.$field_73987_d; + if ($this.$updateCounter3 <= $var1) + return; + var$2 = $this.$mc4.$thePlayer.$sendQueue; + var$3 = new nms_Packet205ClientCommand; + nms_Packet_$callClinit(); + var$3.$creationTimeMillis = jl_System_currentTimeMillis(); + var$3.$isChunkDataPacket = 0; + var$3.$forceRespawn = 1; + if (!var$2.$disconnected) { + var$2 = var$2.$netManager; + a: { + try { + ji_ByteArrayOutputStream_reset(var$2.$sendBuffer); + nms_Packet_writePacket(var$3, ji_DataOutputStream__init_(var$2.$sendBuffer)); + nlea_EaglerAdapterImpl2_writePacket(ji_ByteArrayOutputStream_toByteArray(var$2.$sendBuffer)); + break a; + } catch ($$e) { + $$je = $rt_wrapException($$e); + if ($$je instanceof ji_IOException) { + var$3 = $$je; + } else { + throw $$e; + } + } + if (jl_System_errCache === null) { + var$4 = new ji_PrintStream; + var$2 = new jl_ConsoleOutputStreamStderr; + jl_Object__init_0(var$4); + var$4.$out = var$2; + var$2 = new jl_StringBuilder; + jl_AbstractStringBuilder__init_2(var$2, 16); + var$4.$sb = var$2; + var$4.$buffer0 = $rt_createCharArray(32); + var$4.$autoFlush = 0; + var$2 = new jnci_UTF8Charset; + jnc_Charset__init_(var$2, $rt_s(2), $rt_createArray(jl_String, 0)); + var$4.$charset = var$2; + jl_System_errCache = var$4; + } + jl_Throwable_printStackTrace0(var$3, jl_System_errCache); + } + } + var$3 = $this.$mc4; + var$2 = null; + $ptr = 1; + case 1: + nmc_Minecraft_displayGuiScreen(var$3, var$2); + if ($rt_suspending()) { + break main; + } + return; + default: $rt_invalidPointer(); + }} + $rt_nativeThread().push($this, $var1, var$2, var$3, var$4, $ptr); +}; +$java.nms_GuiWinGame_keyTyped = function($this, $par1, $par2) { + var var$3, var$4, var$5, $$je, $ptr, $tmp; + $ptr = 0; + if ($rt_resuming()) { + var $thread = $rt_nativeThread(); + $ptr = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); + } + main: while (true) { switch ($ptr) { + case 0: + if ($par2 != 1) + return; + var$3 = $this.$mc4.$thePlayer.$sendQueue; + var$4 = new nms_Packet205ClientCommand; + nms_Packet_$callClinit(); + var$4.$creationTimeMillis = jl_System_currentTimeMillis(); + var$4.$isChunkDataPacket = 0; + var$4.$forceRespawn = 1; + if (!var$3.$disconnected) { + var$3 = var$3.$netManager; + a: { + try { + ji_ByteArrayOutputStream_reset(var$3.$sendBuffer); + nms_Packet_writePacket(var$4, ji_DataOutputStream__init_(var$3.$sendBuffer)); + nlea_EaglerAdapterImpl2_writePacket(ji_ByteArrayOutputStream_toByteArray(var$3.$sendBuffer)); + break a; + } catch ($$e) { + $$je = $rt_wrapException($$e); + if ($$je instanceof ji_IOException) { + var$4 = $$je; + } else { + throw $$e; + } + } + if (jl_System_errCache === null) { + var$5 = new ji_PrintStream; + var$3 = new jl_ConsoleOutputStreamStderr; + jl_Object__init_0(var$5); + var$5.$out = var$3; + var$3 = new jl_StringBuilder; + jl_AbstractStringBuilder__init_2(var$3, 16); + var$5.$sb = var$3; + var$5.$buffer0 = $rt_createCharArray(32); + var$5.$autoFlush = 0; + var$3 = new jnci_UTF8Charset; + jnc_Charset__init_(var$3, $rt_s(2), $rt_createArray(jl_String, 0)); + var$5.$charset = var$3; + jl_System_errCache = var$5; + } + jl_Throwable_printStackTrace0(var$4, jl_System_errCache); + } + } + var$4 = $this.$mc4; + var$3 = null; + $ptr = 1; + case 1: + nmc_Minecraft_displayGuiScreen(var$4, var$3); + if ($rt_suspending()) { + break main; + } + return; + default: $rt_invalidPointer(); + }} + $rt_nativeThread().push($this, $par1, $par2, var$3, var$4, var$5, $ptr); +}; +$java.nms_GuiWinGame_initGui = function($this) { + var $var1, $var2, $var5, var$4, var$5, $var6, $var7, $var8, $var6_0, var$10, $var9, $$je; + a: { + if ($this.$lines === null) { + $var1 = new ju_ArrayList; + $var1.$array1 = $rt_createArray(jl_Object, 10); + $this.$lines = $var1; + try { + $var1 = $rt_s(44); + $var2 = jl_StringBuilder_toString(jl_StringBuilder_append9(jl_StringBuilder_append9(jl_StringBuilder_append9(jl_StringBuilder_append9(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(44)), $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(2865)).data.length; + var$5 = 0; + while (var$5 < var$4) { + nle_EaglerProfile_$callClinit(); + $var1 = jl_String_replaceAll($var1, $rt_s(2866), 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(2867), 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)); + var$5 = var$5 + 1 | 0; + } + $var6_0 = 0; + while ($var6_0 < 8) { + ju_ArrayList_add($this.$lines, $rt_s(44)); + $var6_0 = $var6_0 + 1 | 0; + } + $var6_0 = nlea_EaglerAdapterImpl2_fileContentsLines($rt_s(2868)).data.length; + var$10 = 0; + while (var$10 < $var6_0) { + nle_EaglerProfile_$callClinit(); + $var1 = jl_String_replaceAll(jl_String_replaceAll($var1, $rt_s(2866), nle_EaglerProfile_username), $rt_s(2869), $rt_s(2870)); + ju_AbstractCollection_addAll($this.$lines, nms_FontRenderer_listFormattedStringToWidth($this.$mc4.$fontRenderer, $var1, 274)); + ju_ArrayList_add($this.$lines, $rt_s(44)); + var$10 = var$10 + 1 | 0; + } + $this.$field_73989_c = ju_ArrayList_size($this.$lines) * 12 | 0; + break a; + } catch ($$e) { + $$je = $rt_wrapException($$e); + if ($$je instanceof jl_Exception) { + $var9 = $$je; + } else { + throw $$e; + } + } + if (jl_System_errCache === null) { + $var2 = new ji_PrintStream; + $var2.$out = new jl_ConsoleOutputStreamStderr; + $var1 = new jl_StringBuilder; + $var1.$buffer = $rt_createCharArray(16); + $var2.$sb = $var1; + $var2.$buffer0 = $rt_createCharArray(32); + $var2.$autoFlush = 0; + $var1 = new jnci_UTF8Charset; + jnc_Charset__init_($var1, $rt_s(2), $rt_createArray(jl_String, 0)); + $var2.$charset = $var1; + jl_System_errCache = $var2; + } + jl_Throwable_printStackTrace0($var9, jl_System_errCache); + } + } +}; +$java.nms_GuiWinGame_func_73986_b = function($this, $par1, $par2, $par3) { + var $var4, $var5, $var6, $var7, $var9, $var11, var$10, var$11, var$12, var$13; + nlea_Tessellator_$callClinit(); + $var4 = nlea_Tessellator_instance; + nle_TextureLocation_bindTexture($java.nms_GuiWinGame_bk); + nlea_Tessellator_startDrawing($var4, 98); + nlea_Tessellator_setColorRGBA($var4, 255, 255, 255, 255); + $var5 = $this.$width0; + $var6 = 0.0 - ($this.$updateCounter3 + $par3) * 0.5 * $this.$field_73987_d; + $var7 = $this.$height0 - ($this.$updateCounter3 + $par3) * 0.5 * $this.$field_73987_d; + $var9 = ($this.$updateCounter3 + $par3 - 0.0) * 0.019999999552965164; + $var11 = (((($this.$field_73989_c + $this.$height0 | 0) + $this.$height0 | 0) + 24 | 0) / $this.$field_73987_d - 20.0 - ($this.$updateCounter3 + $par3)) * 0.004999999888241291; + if ($var11 >= $var9) + $var11 = $var9; + if ($var11 > 1.0) + $var11 = 1.0; + $par1 = $var11 * $var11 * 96.0 / 255.0 * 255.0 | 0; + nlea_Tessellator_setColorRGBA($var4, $par1, $par1, $par1, 255); + var$10 = $this.$height0; + var$11 = $this.$zLevel; + var$12 = $var6 * 0.015625; + $var4.$hasTexture = 1; + $var4.$textureU = 0.0; + $var11 = var$12; + $var4.$textureV = $var11; + nlea_Tessellator_addVertex($var4, 0.0, var$10, var$11); + var$11 = $var5; + var$12 = $this.$height0; + var$13 = $this.$zLevel; + var$10 = $var5 * 0.015625; + $var4.$hasTexture = 1; + $var9 = var$10; + $var4.$textureU = $var9; + $var4.$textureV = $var11; + nlea_Tessellator_addVertex($var4, var$11, var$12, var$13); + var$13 = $this.$zLevel; + var$10 = $var7 * 0.015625; + $var4.$hasTexture = 1; + $var4.$textureU = $var9; + $var9 = var$10; + $var4.$textureV = $var9; + nlea_Tessellator_addVertex($var4, var$11, 0.0, var$13); + var$13 = $this.$zLevel; + $var4.$hasTexture = 1; + $var4.$textureU = 0.0; + $var4.$textureV = $var9; + nlea_Tessellator_addVertex($var4, 0.0, 0.0, var$13); + nlea_Tessellator_draw($var4); +}; +$java.nms_GuiWinGame_drawScreen = function($this, $par1, $par2, $par3) { + var $var4, $var6, $var7, $var8, $var12, var$9, var$10, $var9, $var10, $var11, $var5, var$15, var$16, var$17; + $java.nms_GuiWinGame_func_73986_b($this, $par1, $par2, $par3); + nlea_Tessellator_$callClinit(); + $var4 = nlea_Tessellator_instance; + $var6 = ($this.$width0 / 2 | 0) - 137 | 0; + $var7 = $this.$height0 + 50 | 0; + $var8 = -($this.$updateCounter3 + $par3) * $this.$field_73987_d; + nleg_EaglerAdapterGL30_glPushMatrix(); + $var12 = nleg_EaglerAdapterGL30_deevis; + $var12.$x = 0.0; + $var12.$y = $var8; + $var12.$z = 0.0; + $var12 = nleg_EaglerAdapterGL30_getMatrix(); + nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $var12, $var12); + if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { + if (jl_System_errCache === null) { + var$9 = new ji_PrintStream; + var$9.$out = new jl_ConsoleOutputStreamStderr; + $var12 = new jl_StringBuilder; + $var12.$buffer = $rt_createCharArray(16); + var$9.$sb = $var12; + var$9.$buffer0 = $rt_createCharArray(32); + var$9.$autoFlush = 0; + $var12 = new jnci_UTF8Charset; + jnc_Charset__init_($var12, $rt_s(2), $rt_createArray(jl_String, 0)); + var$9.$charset = $var12; + jl_System_errCache = var$9; + } + var$10 = jl_System_errCache; + $var12 = var$10.$sb; + jl_AbstractStringBuilder_insert($var12, $var12.$length, $rt_s(221)); + $var9 = $var12.$length; + jl_AbstractStringBuilder_insertSpace($var12, $var9, $var9 + 1 | 0); + $var12.$buffer.data[$var9] = 10; + ji_PrintStream_printSB(var$10); + } + nle_TextureLocation_bindTexture($java.nms_GuiWinGame_mclogo); + nleg_EaglerAdapterGL30_colorR = 1.0; + nleg_EaglerAdapterGL30_colorG = 1.0; + nleg_EaglerAdapterGL30_colorB = 1.0; + nleg_EaglerAdapterGL30_colorA = 1.0; + nms_Gui_drawTexturedModalRect($this, $var6, $var7, 0, 0, 155, 44); + nms_Gui_drawTexturedModalRect($this, $var6 + 155 | 0, $var7, 0, 45, 155, 44); + nlea_Tessellator_setColorRGBA($var4, 255, 255, 255, 255); + $var9 = $var7 + 200 | 0; + $var10 = 0; + while ($var10 < ju_ArrayList_size($this.$lines)) { + if ($var10 == ($this.$lines.$size0 - 1 | 0)) { + $var11 = $var9 + $var8 - (($this.$height0 / 2 | 0) - 6 | 0); + if ($var11 < 0.0) + nleg_EaglerAdapterGL30_glTranslatef(0.0, -$var11, 0.0); + } + $var11 = $var9 + $var8; + if ($var11 + 12.0 + 8.0 > 0.0 && $var11 < $this.$height0) { + $var12 = ju_ArrayList_get($this.$lines, $var10); + if (jl_String_startsWith0($var12, $rt_s(2871))) + 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))); + nms_FontRenderer_drawStringWithShadow($this.$fontRenderer0, $var12, $var6, $var9, 16777215); + } + } + $var9 = $var9 + 12 | 0; + $var10 = $var10 + 1 | 0; + } + nleg_EaglerAdapterGL30_glPopMatrix(); + nle_TextureLocation_bindTexture($java.nms_GuiWinGame_vigg); + nleg_EaglerAdapterGL30_glEnable(16); + nleg_EaglerAdapterGL30_glBlendFunc(0, 45); + nlea_Tessellator_startDrawing($var4, 98); + nlea_Tessellator_setColorRGBA($var4, 255, 255, 255, 255); + $var5 = $this.$width0; + var$15 = $this.$height0; + var$16 = $this.$zLevel; + $var4.$hasTexture = 1; + $var4.$textureU = 0.0; + $var4.$textureV = 1.0; + nlea_Tessellator_addVertex($var4, 0.0, var$15, var$16); + var$17 = $var5; + var$16 = $this.$zLevel; + $var4.$hasTexture = 1; + $var4.$textureU = 1.0; + $var4.$textureV = 1.0; + nlea_Tessellator_addVertex($var4, var$17, var$15, var$16); + var$16 = $this.$zLevel; + nlea_Tessellator_setTextureUV($var4, 1.0, 0.0); + nlea_Tessellator_addVertex($var4, var$17, 0.0, var$16); + var$16 = $this.$zLevel; + nlea_Tessellator_setTextureUV($var4, 0.0, 0.0); + nlea_Tessellator_addVertex($var4, 0.0, 0.0, var$16); + nlea_Tessellator_draw($var4); + nleg_EaglerAdapterGL30_glDisable(16); + nms_GuiScreen_drawScreen($this, $par1, $par2, $par3); +}; +function nms_GuiWinGame__clinit_() { + var var$1; + var$1 = new nle_TextureLocation; + var$1.$path = $rt_s(2872); + var$1.$glObject = (-1); + ju_ArrayList_add(nle_TextureLocation_locations, var$1); + $java.nms_GuiWinGame_bk = var$1; + var$1 = new nle_TextureLocation; + var$1.$path = $rt_s(775); + var$1.$glObject = (-1); + ju_ArrayList_add(nle_TextureLocation_locations, var$1); + $java.nms_GuiWinGame_mclogo = var$1; + var$1 = new nle_TextureLocation; + var$1.$path = $rt_s(989); + var$1.$glObject = (-1); + ju_ArrayList_add(nle_TextureLocation_locations, var$1); + $java.nms_GuiWinGame_vigg = var$1; +} function nms_EntityCrit2FX() { var a = this; nms_EntityFX.call(a); a.$theEntity = null; @@ -208005,279 +208690,6 @@ $java.nms_EntityCrit2FX_onUpdate = function($this) { $java.nms_EntityCrit2FX_getFXLayer = function($this) { return 3; }; -function nms_EntityPickupFX() { - var a = this; nms_EntityFX.call(a); - a.$entityToPickUp = null; - a.$entityPickingUp = null; - a.$age0 = 0; - a.$maxAge = 0; - a.$yOffs = 0.0; -} -function nms_EntityPickupFX__init_(var_0, var_1, var_2, var_3) { - var var_4 = new nms_EntityPickupFX(); - $java.nms_EntityPickupFX__init_(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -$java.nms_EntityPickupFX__init_ = function($this, $par1World, $par2Entity, $par3Entity, $par4) { - $java.nms_EntityFX__init_2($this, $par1World, $par2Entity.$posX, $par2Entity.$posY, $par2Entity.$posZ, $par2Entity.$motionX, $par2Entity.$motionY, $par2Entity.$motionZ); - $this.$age0 = 0; - $this.$maxAge = 0; - $this.$entityToPickUp = $par2Entity; - $this.$entityPickingUp = $par3Entity; - $this.$maxAge = 3; - $this.$yOffs = $par4; -}; -$java.nms_EntityPickupFX_renderParticle = function($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8, $var9, $var11, $var13, $var17, $var15, $var23, $var19, $var25, $var21, $var30, $var31, $var32, var$21, var$22, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$22 = $thread.pop();var$21 = $thread.pop();$var32 = $thread.pop();$var31 = $thread.pop();$var30 = $thread.pop();$var21 = $thread.pop();$var25 = $thread.pop();$var19 = $thread.pop();$var23 = $thread.pop();$var15 = $thread.pop();$var17 = $thread.pop();$var13 = $thread.pop();$var11 = $thread.pop();$var9 = $thread.pop();$var8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1Tessellator - = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var8 = ($this.$age0 + $par2) / $this.$maxAge; - $par3 = $var8 * $var8; - $var9 = $this.$entityToPickUp.$posX; - $var11 = $this.$entityToPickUp.$posY; - $var13 = $this.$entityToPickUp.$posZ; - $var17 = $this.$entityPickingUp.$lastTickPosX; - $var15 = $this.$entityPickingUp.$posX - $this.$entityPickingUp.$lastTickPosX; - $var23 = $par2; - $var15 = $var17 + $var15 * $var23; - $var17 = $this.$entityPickingUp.$lastTickPosY + ($this.$entityPickingUp.$posY - $this.$entityPickingUp.$lastTickPosY) * $var23 + $this.$yOffs; - $var19 = $this.$entityPickingUp.$lastTickPosZ + ($this.$entityPickingUp.$posZ - $this.$entityPickingUp.$lastTickPosZ) * $var23; - $var15 = $var15 - $var9; - $var25 = $par3; - $var21 = $var9 + $var15 * $var25; - $var23 = $var11 + ($var17 - $var11) * $var25; - $var25 = $var13 + ($var19 - $var13) * $var25; - $var15 = $var23 + $this.$yOffset0 / 2.0; - a: { - $var30 = nms_Entity_getBrightnessForRender($this, $par2); - $var31 = $var30 % 65536 | 0; - $var32 = $var30 / 65536 | 0; - $var30 = nms_OpenGlHelper_lightmapTexUnit; - $par3 = $var31 / 1.0; - $par4 = $var32 / 1.0; - nleg_EaglerAdapterGL30_$callClinit(); - switch ($var30) { - case 99: - break; - case 100: - nleg_EaglerAdapterGL30_tex1X = $par3; - nleg_EaglerAdapterGL30_tex1Y = $par4; - break a; - default: - if (jl_System_errCache === null) { - var$21 = new ji_PrintStream; - var$21.$out = new jl_ConsoleOutputStreamStderr; - $par1Tessellator = new jl_StringBuilder; - $par1Tessellator.$buffer = $rt_createCharArray(16); - var$21.$sb = $par1Tessellator; - var$21.$buffer0 = $rt_createCharArray(32); - var$21.$autoFlush = 0; - $par1Tessellator = new jnci_UTF8Charset; - jnc_Charset__init_($par1Tessellator, $rt_s(2), $rt_createArray(jl_String, 0)); - var$21.$charset = $par1Tessellator; - jl_System_errCache = var$21; - } - var$22 = jl_System_errCache; - var$21 = var$22.$sb; - jl_AbstractStringBuilder_insert(var$21, var$21.$length, $rt_s(239)); - $var31 = var$21.$length; - jl_AbstractStringBuilder_insertSpace(var$21, $var31, $var31 + 1 | 0); - var$21.$buffer.data[$var31] = 10; - ji_PrintStream_printSB(var$22); - break a; - } - nleg_EaglerAdapterGL30_tex0X = $par3; - nleg_EaglerAdapterGL30_tex0Y = $par4; - } - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - $var15 = $var21 - nms_EntityFX_interpPosX; - $var17 = $var23 - nms_EntityFX_interpPosY; - $var19 = $var25 - nms_EntityFX_interpPosZ; - $par1Tessellator = nms_RenderManager_instance; - var$21 = $this.$entityToPickUp; - $var15 = $var15; - $var17 = $var17; - $var19 = $var19; - $par3 = $this.$entityToPickUp.$rotationYaw; - $ptr = 1; - case 1: - nms_RenderManager_renderEntityWithPosYaw($par1Tessellator, var$21, $var15, $var17, $var19, $par3, $par2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7, $var8, $var9, $var11, $var13, $var17, $var15, $var23, $var19, $var25, $var21, $var30, $var31, $var32, var$21, var$22, $ptr); -}; -$java.nms_EntityPickupFX_onUpdate = function($this) { - $this.$age0 = $this.$age0 + 1 | 0; - if ($this.$age0 == $this.$maxAge) - $this.$isDead = 1; -}; -$java.nms_EntityPickupFX_getFXLayer = function($this) { - return 3; -}; -$java.nms_WorldSettings = function() { - var a = this; jl_Object.call(a); - a.$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; -}; -$java.nms_GuiDownloadTerrain = function() { - var a = this; nms_GuiScreen.call(a); - a.$netHandler = null; - a.$updateCounter1 = 0; -}; -$java.nms_GuiDownloadTerrain_keyTyped = function($this, $par1, $par2) { - return; -}; -$java.nms_GuiDownloadTerrain_initGui = function($this) { - var var$1; - var$1 = $this.$buttonList; - ju_Arrays_fill(var$1.$array1, 0, var$1.$size0, null); - var$1.$size0 = 0; -}; -$java.nms_GuiDownloadTerrain_updateScreen = function($this) { - var var$1, var$2, var$3, $$je, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$3 = $thread.pop();var$2 = $thread.pop();var$1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $this.$updateCounter1 = $this.$updateCounter1 + 1 | 0; - if (!($this.$updateCounter1 % 20 | 0)) { - var$1 = $this.$netHandler; - var$2 = new nms_Packet0KeepAlive; - nms_Packet_$callClinit(); - var$2.$creationTimeMillis = jl_System_currentTimeMillis(); - var$2.$isChunkDataPacket = 0; - if (!var$1.$disconnected) { - var$1 = var$1.$netManager; - a: { - try { - ji_ByteArrayOutputStream_reset(var$1.$sendBuffer); - nms_Packet_writePacket(var$2, ji_DataOutputStream__init_(var$1.$sendBuffer)); - nlea_EaglerAdapterImpl2_writePacket(ji_ByteArrayOutputStream_toByteArray(var$1.$sendBuffer)); - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof ji_IOException) { - var$1 = $$je; - } else { - throw $$e; - } - } - if (jl_System_errCache === null) { - var$3 = new ji_PrintStream; - var$3.$out = new jl_ConsoleOutputStreamStderr; - var$2 = new jl_StringBuilder; - jl_Object__init_0(var$2); - var$2.$buffer = $rt_createCharArray(16); - var$3.$sb = var$2; - var$3.$buffer0 = $rt_createCharArray(32); - var$3.$autoFlush = 0; - var$2 = new jnci_UTF8Charset; - jnc_Charset__init_(var$2, $rt_s(2), $rt_createArray(jl_String, 0)); - var$3.$charset = var$2; - jl_System_errCache = var$3; - } - jl_Throwable_printStackTrace0(var$1, jl_System_errCache); - } - } - } - if ($this.$netHandler === null) - return; - var$1 = $this.$netHandler; - $ptr = 1; - case 1: - $java.nms_NetClientHandler_processReadPackets(var$1); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, $ptr); -}; -$java.nms_GuiDownloadTerrain_drawScreen = function($this, $par1, $par2, $par3) { - var $var4, var$5, var$6, var$7; - nms_GuiScreen_drawBackground($this, 0); - $var4 = nms_StringTranslate_instance; - var$5 = $this.$fontRenderer0; - $var4 = nms_StringTranslate_translateKey($var4, $rt_s(2859)); - 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_Explosion() { var a = this; jl_Object.call(a); a.$isFlaming = 0; @@ -208943,38 +209355,27 @@ 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_ScoreObjectiveCriteria() { -} -$java.nms_ScoreObjectiveCriteria_field_96643_a = null; -$java.nms_ScoreObjectiveCriteria_field_96641_b = null; -$java.nms_ScoreObjectiveCriteria_field_96642_c = null; -var nms_ScoreObjectiveCriteria_field_96639_d = null; -var nms_ScoreObjectiveCriteria_field_96640_e = null; -$java.nms_ScoreObjectiveCriteria_field_96638_f = null; -function nms_ScoreObjectiveCriteria__clinit_() { - var var$1, var$2; - $java.nms_ScoreObjectiveCriteria_field_96643_a = ju_HashMap__init_1(16, 0.75); - var$1 = new $java.nms_ScoreDummyCriteria; - var$1.$field_96644_g = $rt_s(2860); - ju_HashMap_putImpl($java.nms_ScoreObjectiveCriteria_field_96643_a, $rt_s(2860), var$1); - $java.nms_ScoreObjectiveCriteria_field_96641_b = var$1; - var$2 = new $java.nms_ScoreDummyCriteria; - var$2.$field_96644_g = $rt_s(2861); - ju_HashMap_putImpl($java.nms_ScoreObjectiveCriteria_field_96643_a, $rt_s(2861), var$2); - $java.nms_ScoreObjectiveCriteria_field_96642_c = var$2; - var$2 = new $java.nms_ScoreDummyCriteria; - var$2.$field_96644_g = $rt_s(2862); - ju_HashMap_putImpl($java.nms_ScoreObjectiveCriteria_field_96643_a, $rt_s(2862), var$2); - nms_ScoreObjectiveCriteria_field_96639_d = var$2; - var$2 = new $java.nms_ScoreDummyCriteria; - var$2.$field_96644_g = $rt_s(2863); - ju_HashMap_putImpl($java.nms_ScoreObjectiveCriteria_field_96643_a, $rt_s(2863), var$2); - nms_ScoreObjectiveCriteria_field_96640_e = var$2; - var$2 = new $java.nms_ScoreHealthCriteria; - var$2.$field_96644_g = $rt_s(2864); - ju_HashMap_putImpl($java.nms_ScoreObjectiveCriteria_field_96643_a, $rt_s(2864), var$2); - $java.nms_ScoreObjectiveCriteria_field_96638_f = var$2; -} +$java.nms_NpcMerchant = function() { + var a = this; jl_Object.call(a); + a.$theMerchantInventory = null; + a.$customer = null; + a.$recipeList = null; +}; +$java.nms_NpcMerchant_getCustomer = function($this) { + return $this.$customer; +}; +$java.nms_NpcMerchant_setCustomer = function($this, $par1EntityPlayer) { + return; +}; +$java.nms_NpcMerchant_getRecipes = function($this, $par1EntityPlayer) { + return $this.$recipeList; +}; +$java.nms_NpcMerchant_setRecipes = function($this, $par1MerchantRecipeList) { + $this.$recipeList = $par1MerchantRecipeList; +}; +$java.nms_NpcMerchant_useRecipe = function($this, $par1MerchantRecipe) { + return; +}; function nms_GuiMerchant() { var a = this; nms_GuiContainer.call(a); a.$theIMerchant = null; @@ -208994,7 +209395,7 @@ $java.nms_GuiMerchant__init_ = function($this, $par1, $par2, $par3World, $par4) $this.$currentRecipeIndex = 0; $this.$theIMerchant = $par2; if (!($par4 !== null && $par4.$characters.data.length >= 1)) - $par4 = nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(2865)); + $par4 = nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(2873)); $this.$field_94082_v = $par4; }; $java.nms_GuiMerchant_initGui = function($this) { @@ -209072,7 +209473,7 @@ $java.nms_GuiMerchant_actionPerformed = function($this, $par1GuiButton) { $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(2866), ji_ByteArrayOutputStream_toByteArray($var3))); + nms_NetClientHandler_addToSendQueue(nmc_Minecraft_getNetHandler($this.$mc4), nms_Packet250CustomPayload__init_0($rt_s(2874), ji_ByteArrayOutputStream_toByteArray($var3))); break a; } catch ($$e) { $$je = $rt_wrapException($$e); @@ -209240,7 +209641,7 @@ $java.nms_GuiMerchant_getIMerchant = function($this) { function nms_GuiMerchant__clinit_() { var var$1; var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(2867); + var$1.$path = $rt_s(2875); var$1.$glObject = (-1); ju_ArrayList_add(nle_TextureLocation_locations, var$1); $java.nms_GuiMerchant_tex = var$1; @@ -209494,407 +209895,6 @@ $java.nms_MerchantRecipeList_readRecipiesFromStream = function($par0DataInputStr } return $var1; }; -function nms_GuiWinGame() { - var a = this; nms_GuiScreen.call(a); - a.$updateCounter3 = 0; - a.$lines = null; - a.$field_73989_c = 0; - a.$field_73987_d = 0.0; -} -$java.nms_GuiWinGame_bk = null; -$java.nms_GuiWinGame_mclogo = null; -$java.nms_GuiWinGame_vigg = null; -$java.nms_GuiWinGame__init_ = function() { - var var_0 = new nms_GuiWinGame(); - nms_GuiWinGame__init_(var_0); - return var_0; -}; -function nms_GuiWinGame__init_($this) { - nms_GuiScreen__init_($this); - $this.$updateCounter3 = 0; - $this.$field_73989_c = 0; - $this.$field_73987_d = 0.5; -} -$java.nms_GuiWinGame_updateScreen = function($this) { - var $var1, var$2, var$3, var$4, $$je, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();var$2 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $this.$updateCounter3 = $this.$updateCounter3 + 1 | 0; - $var1 = ((($this.$field_73989_c + $this.$height0 | 0) + $this.$height0 | 0) + 24 | 0) / $this.$field_73987_d; - if ($this.$updateCounter3 <= $var1) - return; - var$2 = $this.$mc4.$thePlayer.$sendQueue; - var$3 = new nms_Packet205ClientCommand; - nms_Packet_$callClinit(); - var$3.$creationTimeMillis = jl_System_currentTimeMillis(); - var$3.$isChunkDataPacket = 0; - var$3.$forceRespawn = 1; - if (!var$2.$disconnected) { - var$2 = var$2.$netManager; - a: { - try { - ji_ByteArrayOutputStream_reset(var$2.$sendBuffer); - nms_Packet_writePacket(var$3, ji_DataOutputStream__init_(var$2.$sendBuffer)); - nlea_EaglerAdapterImpl2_writePacket(ji_ByteArrayOutputStream_toByteArray(var$2.$sendBuffer)); - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof ji_IOException) { - var$3 = $$je; - } else { - throw $$e; - } - } - if (jl_System_errCache === null) { - var$4 = new ji_PrintStream; - var$2 = new jl_ConsoleOutputStreamStderr; - jl_Object__init_0(var$4); - var$4.$out = var$2; - var$2 = new jl_StringBuilder; - jl_AbstractStringBuilder__init_2(var$2, 16); - var$4.$sb = var$2; - var$4.$buffer0 = $rt_createCharArray(32); - var$4.$autoFlush = 0; - var$2 = new jnci_UTF8Charset; - jnc_Charset__init_(var$2, $rt_s(2), $rt_createArray(jl_String, 0)); - var$4.$charset = var$2; - jl_System_errCache = var$4; - } - jl_Throwable_printStackTrace0(var$3, jl_System_errCache); - } - } - var$3 = $this.$mc4; - var$2 = null; - $ptr = 1; - case 1: - nmc_Minecraft_displayGuiScreen(var$3, var$2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, var$2, var$3, var$4, $ptr); -}; -$java.nms_GuiWinGame_keyTyped = function($this, $par1, $par2) { - var var$3, var$4, var$5, $$je, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par2 != 1) - return; - var$3 = $this.$mc4.$thePlayer.$sendQueue; - var$4 = new nms_Packet205ClientCommand; - nms_Packet_$callClinit(); - var$4.$creationTimeMillis = jl_System_currentTimeMillis(); - var$4.$isChunkDataPacket = 0; - var$4.$forceRespawn = 1; - if (!var$3.$disconnected) { - var$3 = var$3.$netManager; - a: { - try { - ji_ByteArrayOutputStream_reset(var$3.$sendBuffer); - nms_Packet_writePacket(var$4, ji_DataOutputStream__init_(var$3.$sendBuffer)); - nlea_EaglerAdapterImpl2_writePacket(ji_ByteArrayOutputStream_toByteArray(var$3.$sendBuffer)); - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof ji_IOException) { - var$4 = $$je; - } else { - throw $$e; - } - } - if (jl_System_errCache === null) { - var$5 = new ji_PrintStream; - var$3 = new jl_ConsoleOutputStreamStderr; - jl_Object__init_0(var$5); - var$5.$out = var$3; - var$3 = new jl_StringBuilder; - jl_AbstractStringBuilder__init_2(var$3, 16); - var$5.$sb = var$3; - var$5.$buffer0 = $rt_createCharArray(32); - var$5.$autoFlush = 0; - var$3 = new jnci_UTF8Charset; - jnc_Charset__init_(var$3, $rt_s(2), $rt_createArray(jl_String, 0)); - var$5.$charset = var$3; - jl_System_errCache = var$5; - } - jl_Throwable_printStackTrace0(var$4, jl_System_errCache); - } - } - var$4 = $this.$mc4; - var$3 = null; - $ptr = 1; - case 1: - nmc_Minecraft_displayGuiScreen(var$4, var$3); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, var$3, var$4, var$5, $ptr); -}; -$java.nms_GuiWinGame_initGui = function($this) { - var $var1, $var2, $var5, var$4, var$5, $var6, $var7, $var8, $var6_0, var$10, $var9, $$je; - a: { - if ($this.$lines === null) { - $var1 = new ju_ArrayList; - $var1.$array1 = $rt_createArray(jl_Object, 10); - $this.$lines = $var1; - try { - $var1 = $rt_s(44); - $var2 = jl_StringBuilder_toString(jl_StringBuilder_append9(jl_StringBuilder_append9(jl_StringBuilder_append9(jl_StringBuilder_append9(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(44)), $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(2868)).data.length; - var$5 = 0; - while (var$5 < var$4) { - nle_EaglerProfile_$callClinit(); - $var1 = jl_String_replaceAll($var1, $rt_s(2869), 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(2870), 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)); - var$5 = var$5 + 1 | 0; - } - $var6_0 = 0; - while ($var6_0 < 8) { - ju_ArrayList_add($this.$lines, $rt_s(44)); - $var6_0 = $var6_0 + 1 | 0; - } - $var6_0 = nlea_EaglerAdapterImpl2_fileContentsLines($rt_s(2871)).data.length; - var$10 = 0; - while (var$10 < $var6_0) { - nle_EaglerProfile_$callClinit(); - $var1 = jl_String_replaceAll(jl_String_replaceAll($var1, $rt_s(2869), nle_EaglerProfile_username), $rt_s(2872), $rt_s(2873)); - ju_AbstractCollection_addAll($this.$lines, nms_FontRenderer_listFormattedStringToWidth($this.$mc4.$fontRenderer, $var1, 274)); - ju_ArrayList_add($this.$lines, $rt_s(44)); - var$10 = var$10 + 1 | 0; - } - $this.$field_73989_c = ju_ArrayList_size($this.$lines) * 12 | 0; - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_Exception) { - $var9 = $$je; - } else { - throw $$e; - } - } - if (jl_System_errCache === null) { - $var2 = new ji_PrintStream; - $var2.$out = new jl_ConsoleOutputStreamStderr; - $var1 = new jl_StringBuilder; - $var1.$buffer = $rt_createCharArray(16); - $var2.$sb = $var1; - $var2.$buffer0 = $rt_createCharArray(32); - $var2.$autoFlush = 0; - $var1 = new jnci_UTF8Charset; - jnc_Charset__init_($var1, $rt_s(2), $rt_createArray(jl_String, 0)); - $var2.$charset = $var1; - jl_System_errCache = $var2; - } - jl_Throwable_printStackTrace0($var9, jl_System_errCache); - } - } -}; -$java.nms_GuiWinGame_func_73986_b = function($this, $par1, $par2, $par3) { - var $var4, $var5, $var6, $var7, $var9, $var11, var$10, var$11, var$12, var$13; - nlea_Tessellator_$callClinit(); - $var4 = nlea_Tessellator_instance; - nle_TextureLocation_bindTexture($java.nms_GuiWinGame_bk); - nlea_Tessellator_startDrawing($var4, 98); - nlea_Tessellator_setColorRGBA($var4, 255, 255, 255, 255); - $var5 = $this.$width0; - $var6 = 0.0 - ($this.$updateCounter3 + $par3) * 0.5 * $this.$field_73987_d; - $var7 = $this.$height0 - ($this.$updateCounter3 + $par3) * 0.5 * $this.$field_73987_d; - $var9 = ($this.$updateCounter3 + $par3 - 0.0) * 0.019999999552965164; - $var11 = (((($this.$field_73989_c + $this.$height0 | 0) + $this.$height0 | 0) + 24 | 0) / $this.$field_73987_d - 20.0 - ($this.$updateCounter3 + $par3)) * 0.004999999888241291; - if ($var11 >= $var9) - $var11 = $var9; - if ($var11 > 1.0) - $var11 = 1.0; - $par1 = $var11 * $var11 * 96.0 / 255.0 * 255.0 | 0; - nlea_Tessellator_setColorRGBA($var4, $par1, $par1, $par1, 255); - var$10 = $this.$height0; - var$11 = $this.$zLevel; - var$12 = $var6 * 0.015625; - $var4.$hasTexture = 1; - $var4.$textureU = 0.0; - $var11 = var$12; - $var4.$textureV = $var11; - nlea_Tessellator_addVertex($var4, 0.0, var$10, var$11); - var$11 = $var5; - var$12 = $this.$height0; - var$13 = $this.$zLevel; - var$10 = $var5 * 0.015625; - $var4.$hasTexture = 1; - $var9 = var$10; - $var4.$textureU = $var9; - $var4.$textureV = $var11; - nlea_Tessellator_addVertex($var4, var$11, var$12, var$13); - var$13 = $this.$zLevel; - var$10 = $var7 * 0.015625; - $var4.$hasTexture = 1; - $var4.$textureU = $var9; - $var9 = var$10; - $var4.$textureV = $var9; - nlea_Tessellator_addVertex($var4, var$11, 0.0, var$13); - var$13 = $this.$zLevel; - $var4.$hasTexture = 1; - $var4.$textureU = 0.0; - $var4.$textureV = $var9; - nlea_Tessellator_addVertex($var4, 0.0, 0.0, var$13); - nlea_Tessellator_draw($var4); -}; -$java.nms_GuiWinGame_drawScreen = function($this, $par1, $par2, $par3) { - var $var4, $var6, $var7, $var8, $var12, var$9, var$10, $var9, $var10, $var11, $var5, var$15, var$16, var$17; - $java.nms_GuiWinGame_func_73986_b($this, $par1, $par2, $par3); - nlea_Tessellator_$callClinit(); - $var4 = nlea_Tessellator_instance; - $var6 = ($this.$width0 / 2 | 0) - 137 | 0; - $var7 = $this.$height0 + 50 | 0; - $var8 = -($this.$updateCounter3 + $par3) * $this.$field_73987_d; - nleg_EaglerAdapterGL30_glPushMatrix(); - $var12 = nleg_EaglerAdapterGL30_deevis; - $var12.$x = 0.0; - $var12.$y = $var8; - $var12.$z = 0.0; - $var12 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $var12, $var12); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$9 = new ji_PrintStream; - var$9.$out = new jl_ConsoleOutputStreamStderr; - $var12 = new jl_StringBuilder; - $var12.$buffer = $rt_createCharArray(16); - var$9.$sb = $var12; - var$9.$buffer0 = $rt_createCharArray(32); - var$9.$autoFlush = 0; - $var12 = new jnci_UTF8Charset; - jnc_Charset__init_($var12, $rt_s(2), $rt_createArray(jl_String, 0)); - var$9.$charset = $var12; - jl_System_errCache = var$9; - } - var$10 = jl_System_errCache; - $var12 = var$10.$sb; - jl_AbstractStringBuilder_insert($var12, $var12.$length, $rt_s(221)); - $var9 = $var12.$length; - jl_AbstractStringBuilder_insertSpace($var12, $var9, $var9 + 1 | 0); - $var12.$buffer.data[$var9] = 10; - ji_PrintStream_printSB(var$10); - } - nle_TextureLocation_bindTexture($java.nms_GuiWinGame_mclogo); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nms_Gui_drawTexturedModalRect($this, $var6, $var7, 0, 0, 155, 44); - nms_Gui_drawTexturedModalRect($this, $var6 + 155 | 0, $var7, 0, 45, 155, 44); - nlea_Tessellator_setColorRGBA($var4, 255, 255, 255, 255); - $var9 = $var7 + 200 | 0; - $var10 = 0; - while ($var10 < ju_ArrayList_size($this.$lines)) { - if ($var10 == ($this.$lines.$size0 - 1 | 0)) { - $var11 = $var9 + $var8 - (($this.$height0 / 2 | 0) - 6 | 0); - if ($var11 < 0.0) - nleg_EaglerAdapterGL30_glTranslatef(0.0, -$var11, 0.0); - } - $var11 = $var9 + $var8; - if ($var11 + 12.0 + 8.0 > 0.0 && $var11 < $this.$height0) { - $var12 = ju_ArrayList_get($this.$lines, $var10); - if (jl_String_startsWith0($var12, $rt_s(2874))) - 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))); - nms_FontRenderer_drawStringWithShadow($this.$fontRenderer0, $var12, $var6, $var9, 16777215); - } - } - $var9 = $var9 + 12 | 0; - $var10 = $var10 + 1 | 0; - } - nleg_EaglerAdapterGL30_glPopMatrix(); - nle_TextureLocation_bindTexture($java.nms_GuiWinGame_vigg); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(0, 45); - nlea_Tessellator_startDrawing($var4, 98); - nlea_Tessellator_setColorRGBA($var4, 255, 255, 255, 255); - $var5 = $this.$width0; - var$15 = $this.$height0; - var$16 = $this.$zLevel; - $var4.$hasTexture = 1; - $var4.$textureU = 0.0; - $var4.$textureV = 1.0; - nlea_Tessellator_addVertex($var4, 0.0, var$15, var$16); - var$17 = $var5; - var$16 = $this.$zLevel; - $var4.$hasTexture = 1; - $var4.$textureU = 1.0; - $var4.$textureV = 1.0; - nlea_Tessellator_addVertex($var4, var$17, var$15, var$16); - var$16 = $this.$zLevel; - nlea_Tessellator_setTextureUV($var4, 1.0, 0.0); - nlea_Tessellator_addVertex($var4, var$17, 0.0, var$16); - var$16 = $this.$zLevel; - nlea_Tessellator_setTextureUV($var4, 0.0, 0.0); - nlea_Tessellator_addVertex($var4, 0.0, 0.0, var$16); - nlea_Tessellator_draw($var4); - nleg_EaglerAdapterGL30_glDisable(16); - nms_GuiScreen_drawScreen($this, $par1, $par2, $par3); -}; -function nms_GuiWinGame__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(2875); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_GuiWinGame_bk = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(775); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_GuiWinGame_mclogo = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(989); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_GuiWinGame_vigg = var$1; -} -$java.nms_NpcMerchant = function() { - var a = this; jl_Object.call(a); - a.$theMerchantInventory = null; - a.$customer = null; - a.$recipeList = null; -}; -$java.nms_NpcMerchant_getCustomer = function($this) { - return $this.$customer; -}; -$java.nms_NpcMerchant_setCustomer = function($this, $par1EntityPlayer) { - return; -}; -$java.nms_NpcMerchant_getRecipes = function($this, $par1EntityPlayer) { - return $this.$recipeList; -}; -$java.nms_NpcMerchant_setRecipes = function($this, $par1MerchantRecipeList) { - $this.$recipeList = $par1MerchantRecipeList; -}; -$java.nms_NpcMerchant_useRecipe = function($this, $par1MerchantRecipe) { - return; -}; $java.nms_GameRuleValue = function() { var a = this; jl_Object.call(a); a.$valueString = null; @@ -209934,88 +209934,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; -}; $java.nms_InventoryMerchant = function() { var a = this; jl_Object.call(a); a.$theMerchant = null; @@ -210139,6 +210057,197 @@ $java.nms_InventoryMerchant_setCurrentRecipeIndex = function($this, $par1) { $this.$currentRecipeIndex0 = $par1; $java.nms_InventoryMerchant_resetRecipeAndSlots($this); }; +function nms_MerchantRecipe() { + var a = this; jl_Object.call(a); + a.$itemToBuy = null; + a.$secondItemToBuy = null; + a.$itemToSell = null; + a.$toolUses = 0; + a.$maxTradeUses = 0; +} +function nms_MerchantRecipe__init_(var_0, var_1, var_2) { + var var_3 = new nms_MerchantRecipe(); + $java.nms_MerchantRecipe__init_(var_3, var_0, var_1, var_2); + return var_3; +} +$java.nms_MerchantRecipe__init_ = function($this, $par1ItemStack, $par2ItemStack, $par3ItemStack) { + $this.$itemToBuy = $par1ItemStack; + $this.$secondItemToBuy = $par2ItemStack; + $this.$itemToSell = $par3ItemStack; + $this.$maxTradeUses = 7; +}; +$java.nms_MerchantRecipe_getItemToBuy = function($this) { + return $this.$itemToBuy; +}; +$java.nms_MerchantRecipe_getSecondItemToBuy = function($this) { + return $this.$secondItemToBuy; +}; +$java.nms_MerchantRecipe_hasSecondItemToBuy = function($this) { + return $this.$secondItemToBuy === null ? 0 : 1; +}; +$java.nms_MerchantRecipe_getItemToSell = function($this) { + return $this.$itemToSell; +}; +function nms_MerchantRecipe_hasSameIDsAs($this, $par1MerchantRecipe) { + var var$2; + a: { + if ($this.$itemToBuy.$itemID0 == $par1MerchantRecipe.$itemToBuy.$itemID0 && $this.$itemToSell.$itemID0 == $par1MerchantRecipe.$itemToSell.$itemID0) { + b: { + if (!($this.$secondItemToBuy === null && $par1MerchantRecipe.$secondItemToBuy === null)) { + if ($this.$secondItemToBuy === null) + break b; + if ($par1MerchantRecipe.$secondItemToBuy === null) + break b; + if ($this.$secondItemToBuy.$itemID0 != $par1MerchantRecipe.$secondItemToBuy.$itemID0) + break b; + } + var$2 = 1; + break a; + } + var$2 = 0; + } else + var$2 = 0; + } + return var$2; +} +$java.nms_MerchantRecipe_hasSameItemsAs = function($this, $par1MerchantRecipe) { + var var$2; + a: { + b: { + if (nms_MerchantRecipe_hasSameIDsAs($this, $par1MerchantRecipe)) { + if ($this.$itemToBuy.$stackSize < $par1MerchantRecipe.$itemToBuy.$stackSize) + break b; + if ($this.$secondItemToBuy !== null && $this.$secondItemToBuy.$stackSize < $par1MerchantRecipe.$secondItemToBuy.$stackSize) + break b; + } + var$2 = 0; + break a; + } + var$2 = 1; + } + return var$2; +}; +$java.nms_MerchantRecipe_incrementToolUses = function($this) { + $this.$toolUses = $this.$toolUses + 1 | 0; +}; +$java.nms_MerchantRecipe_func_82783_a = function($this, $par1) { + $this.$maxTradeUses = $this.$maxTradeUses + $par1 | 0; +}; +$java.nms_MerchantRecipe_func_82784_g = function($this) { + return $this.$toolUses < $this.$maxTradeUses ? 0 : 1; +}; +$java.nms_MerchantRecipe_func_82785_h = function($this) { + $this.$toolUses = $this.$maxTradeUses; +}; +function nms_WorldProviderHell() { + nms_WorldProvider.call(this); +} +$java.nms_WorldProviderHell__init_ = function() { + var var_0 = new nms_WorldProviderHell(); + nms_WorldProviderHell__init_(var_0); + return var_0; +}; +function nms_WorldProviderHell__init_($this) { + $this.$isHellWorld = 0; + $this.$hasNoSky = 0; + $this.$lightBrightnessTable = $rt_createFloatArray(16); + $this.$dimensionId = 0; + $this.$colorsSunriseSunset = $rt_createFloatArray(4); +} +$java.nms_WorldProviderHell_registerWorldChunkManager = function($this) { + $this.$isHellWorld = 1; + $this.$hasNoSky = 1; + $this.$dimensionId = (-1); +}; +$java.nms_WorldProviderHell_getFogColor = function($this, $par1, $par2) { + return nms_Vec3Pool_getVecFromPool($this.$worldObj0.$vecPool, 0.20000000298023224, 0.029999999329447746, 0.029999999329447746); +}; +$java.nms_WorldProviderHell_generateLightBrightnessTable = function($this) { + var $var2, $var3; + $var2 = 0; + while ($var2 <= 15) { + $var3 = 1.0 - $var2 / 15.0; + $this.$lightBrightnessTable.data[$var2] = (1.0 - $var3) / ($var3 * 3.0 + 1.0) * 0.8999999761581421 + 0.10000000149011612; + $var2 = $var2 + 1 | 0; + } +}; +$java.nms_WorldProviderHell_isSurfaceWorld = function($this) { + return 0; +}; +$java.nms_WorldProviderHell_calculateCelestialAngle = function($this, $par1, $par3) { + return 0.5; +}; +$java.nms_WorldProviderHell_canRespawnHere = function($this) { + return 0; +}; +$java.nms_WorldProviderHell_doesXZShowFog = function($this, $par1, $par2) { + return 1; +}; +function nms_WorldProviderEnd() { + nms_WorldProvider.call(this); +} +$java.nms_WorldProviderEnd__init_ = function() { + var var_0 = new nms_WorldProviderEnd(); + nms_WorldProviderEnd__init_(var_0); + return var_0; +}; +function nms_WorldProviderEnd__init_($this) { + $this.$isHellWorld = 0; + $this.$hasNoSky = 0; + $this.$lightBrightnessTable = $rt_createFloatArray(16); + $this.$dimensionId = 0; + $this.$colorsSunriseSunset = $rt_createFloatArray(4); +} +$java.nms_WorldProviderEnd_registerWorldChunkManager = function($this) { + $this.$dimensionId = 1; + $this.$hasNoSky = 1; +}; +$java.nms_WorldProviderEnd_calculateCelestialAngle = function($this, $par1, $par3) { + return 0.0; +}; +$java.nms_WorldProviderEnd_calcSunriseSunsetColors = function($this, $par1, $par2) { + return null; +}; +$java.nms_WorldProviderEnd_getFogColor = function($this, $par1, $par2) { + var $var4, var$4, var$5; + $par1 = $par1 * 3.1415927410125732 * 2.0; + $var4 = nms_MathHelper_SIN_TABLE.data[($par1 * 10430.3779296875 + 16384.0 | 0) & 65535] * 2.0 + 0.5; + if ($var4 < 0.0) + $var4 = 0.0; + if ($var4 > 1.0) + $var4 = 1.0; + $par1 = $var4 * 0.0 + 0.15000000596046448; + $par2 = 0.6274510025978088 * $par1; + $par1 = 0.501960813999176 * $par1; + var$4 = $this.$worldObj0.$vecPool; + var$5 = $par2; + return nms_Vec3Pool_getVecFromPool(var$4, var$5, $par1, var$5); +}; +$java.nms_WorldProviderEnd_isSkyColored = function($this) { + return 0; +}; +$java.nms_WorldProviderEnd_canRespawnHere = function($this) { + return 0; +}; +$java.nms_WorldProviderEnd_isSurfaceWorld = function($this) { + return 0; +}; +$java.nms_WorldProviderEnd_getCloudHeight = function($this) { + return 8.0; +}; +$java.nms_WorldProviderEnd_doesXZShowFog = function($this, $par1, $par2) { + return 1; +}; +$java.nms_ScoreDummyCriteria = function() { + jl_Object.call(this); + this.$field_96644_g = null; +}; +$java.nms_ScoreDummyCriteria_isReadOnly = function($this) { + return 0; +}; +$java.nms_ScoreHealthCriteria = function() { + $java.nms_ScoreDummyCriteria.call(this); +}; function nms_InventoryEnderChest() { $java.nms_InventoryBasic.call(this); this.$associatedChest = null; @@ -210613,115 +210722,6 @@ $java.nms_ContainerPlayer_transferStackInSlot = function($this, $par1EntityPlaye $java.nms_ContainerPlayer_func_94530_a = function($this, $par1ItemStack, $par2Slot) { return $par2Slot.$inventory0 === $this.$craftResult ? 0 : 1; }; -function nms_WorldProviderHell() { - nms_WorldProvider.call(this); -} -$java.nms_WorldProviderHell__init_ = function() { - var var_0 = new nms_WorldProviderHell(); - nms_WorldProviderHell__init_(var_0); - return var_0; -}; -function nms_WorldProviderHell__init_($this) { - $this.$isHellWorld = 0; - $this.$hasNoSky = 0; - $this.$lightBrightnessTable = $rt_createFloatArray(16); - $this.$dimensionId = 0; - $this.$colorsSunriseSunset = $rt_createFloatArray(4); -} -$java.nms_WorldProviderHell_registerWorldChunkManager = function($this) { - $this.$isHellWorld = 1; - $this.$hasNoSky = 1; - $this.$dimensionId = (-1); -}; -$java.nms_WorldProviderHell_getFogColor = function($this, $par1, $par2) { - return nms_Vec3Pool_getVecFromPool($this.$worldObj0.$vecPool, 0.20000000298023224, 0.029999999329447746, 0.029999999329447746); -}; -$java.nms_WorldProviderHell_generateLightBrightnessTable = function($this) { - var $var2, $var3; - $var2 = 0; - while ($var2 <= 15) { - $var3 = 1.0 - $var2 / 15.0; - $this.$lightBrightnessTable.data[$var2] = (1.0 - $var3) / ($var3 * 3.0 + 1.0) * 0.8999999761581421 + 0.10000000149011612; - $var2 = $var2 + 1 | 0; - } -}; -$java.nms_WorldProviderHell_isSurfaceWorld = function($this) { - return 0; -}; -$java.nms_WorldProviderHell_calculateCelestialAngle = function($this, $par1, $par3) { - return 0.5; -}; -$java.nms_WorldProviderHell_canRespawnHere = function($this) { - return 0; -}; -$java.nms_WorldProviderHell_doesXZShowFog = function($this, $par1, $par2) { - return 1; -}; -function nms_WorldProviderEnd() { - nms_WorldProvider.call(this); -} -$java.nms_WorldProviderEnd__init_ = function() { - var var_0 = new nms_WorldProviderEnd(); - nms_WorldProviderEnd__init_(var_0); - return var_0; -}; -function nms_WorldProviderEnd__init_($this) { - $this.$isHellWorld = 0; - $this.$hasNoSky = 0; - $this.$lightBrightnessTable = $rt_createFloatArray(16); - $this.$dimensionId = 0; - $this.$colorsSunriseSunset = $rt_createFloatArray(4); -} -$java.nms_WorldProviderEnd_registerWorldChunkManager = function($this) { - $this.$dimensionId = 1; - $this.$hasNoSky = 1; -}; -$java.nms_WorldProviderEnd_calculateCelestialAngle = function($this, $par1, $par3) { - return 0.0; -}; -$java.nms_WorldProviderEnd_calcSunriseSunsetColors = function($this, $par1, $par2) { - return null; -}; -$java.nms_WorldProviderEnd_getFogColor = function($this, $par1, $par2) { - var $var4, var$4, var$5; - $par1 = $par1 * 3.1415927410125732 * 2.0; - $var4 = nms_MathHelper_SIN_TABLE.data[($par1 * 10430.3779296875 + 16384.0 | 0) & 65535] * 2.0 + 0.5; - if ($var4 < 0.0) - $var4 = 0.0; - if ($var4 > 1.0) - $var4 = 1.0; - $par1 = $var4 * 0.0 + 0.15000000596046448; - $par2 = 0.6274510025978088 * $par1; - $par1 = 0.501960813999176 * $par1; - var$4 = $this.$worldObj0.$vecPool; - var$5 = $par2; - return nms_Vec3Pool_getVecFromPool(var$4, var$5, $par1, var$5); -}; -$java.nms_WorldProviderEnd_isSkyColored = function($this) { - return 0; -}; -$java.nms_WorldProviderEnd_canRespawnHere = function($this) { - return 0; -}; -$java.nms_WorldProviderEnd_isSurfaceWorld = function($this) { - return 0; -}; -$java.nms_WorldProviderEnd_getCloudHeight = function($this) { - return 8.0; -}; -$java.nms_WorldProviderEnd_doesXZShowFog = function($this, $par1, $par2) { - return 1; -}; -$java.nms_ScoreDummyCriteria = function() { - jl_Object.call(this); - this.$field_96644_g = null; -}; -$java.nms_ScoreDummyCriteria_isReadOnly = function($this) { - return 0; -}; -$java.nms_ScoreHealthCriteria = function() { - $java.nms_ScoreDummyCriteria.call(this); -}; function nms_InventoryCraftResult() { jl_Object.call(this); this.$stackResult = null; @@ -225639,7 +225639,7 @@ $java.nms_GuiButtonMerchant_drawButton = function($this, $par1Minecraft, $par2, function nms_GuiButtonMerchant__clinit_() { var var$1; var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(2867); + var$1.$path = $rt_s(2875); var$1.$glObject = (-1); ju_ArrayList_add(nle_TextureLocation_locations, var$1); $java.nms_GuiButtonMerchant_tex = var$1; @@ -229460,8 +229460,8 @@ 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_IDAT, "IDAT", 3, cbpc_Chunk, [], 0, 3, 0, 0, cbpc_IEND, 0, cbpc_Chunk, [], 0, 3, 0, 0, +cbpc_IDAT, "IDAT", 3, 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, @@ -230905,31 +230905,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_EntityCrit2FX, "EntityCrit2FX", 28, 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_EntityPickupFX, "EntityPickupFX", 28, 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_WorldProviderSurface, 0, nms_WorldProvider, [], 0, 3, 0, 0, $java.nms_WorldSettings, 0, jl_Object, [], 4, 3, 0, 0, $java.nms_GuiDownloadTerrain, 0, nms_GuiScreen, [], 0, 3, 0, ["$keyTyped", function(var_1, var_2) { $java.nms_GuiDownloadTerrain_keyTyped(this, var_1, var_2); }, "$initGui", function() { $java.nms_GuiDownloadTerrain_initGui(this); }, "$updateScreen", function() { $java.nms_GuiDownloadTerrain_updateScreen(this); }, "$drawScreen", function(var_1, var_2, var_3) { $java.nms_GuiDownloadTerrain_drawScreen(this, var_1, var_2, var_3); }], -nms_WorldProviderSurface, 0, nms_WorldProvider, [], 0, 3, 0, 0, -nms_Explosion, 0, jl_Object, [], 0, 3, 0, 0, +nms_EntityPickupFX, "EntityPickupFX", 28, 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_ScoreObjectiveCriteria, 0, jl_Object, [], 3, 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_EntityCrit2FX, "EntityCrit2FX", 28, 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_Explosion, 0, jl_Object, [], 0, 3, 0, 0, +$java.nms_NpcMerchant, 0, jl_Object, [nms_IMerchant], 0, 3, 0, ["$getCustomer", function() { return $java.nms_NpcMerchant_getCustomer(this); }, "$setCustomer", function(var_1) { $java.nms_NpcMerchant_setCustomer(this, var_1); }, "$getRecipes", function(var_1) { return $java.nms_NpcMerchant_getRecipes(this, var_1); }, "$setRecipes", function(var_1) { $java.nms_NpcMerchant_setRecipes(this, var_1); }, "$useRecipe", function(var_1) { $java.nms_NpcMerchant_useRecipe(this, var_1); }], nms_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_GuiWinGame, 0, nms_GuiScreen, [], 0, 3, 0, ["$updateScreen", function() { $java.nms_GuiWinGame_updateScreen(this); }, "$keyTyped", function(var_1, var_2) { $java.nms_GuiWinGame_keyTyped(this, var_1, var_2); }, "$initGui", function() { $java.nms_GuiWinGame_initGui(this); }, "$drawScreen", function(var_1, var_2, var_3) { $java.nms_GuiWinGame_drawScreen(this, var_1, var_2, var_3); }], -$java.nms_NpcMerchant, 0, jl_Object, [nms_IMerchant], 0, 3, 0, ["$getCustomer", function() { return $java.nms_NpcMerchant_getCustomer(this); }, "$setCustomer", function(var_1) { $java.nms_NpcMerchant_setCustomer(this, var_1); }, "$getRecipes", function(var_1) { return $java.nms_NpcMerchant_getRecipes(this, var_1); }, "$setRecipes", function(var_1) { $java.nms_NpcMerchant_setRecipes(this, var_1); }, "$useRecipe", function(var_1) { $java.nms_NpcMerchant_useRecipe(this, var_1); }], $java.nms_GameRuleValue, "GameRuleValue", 28, jl_Object, [], 0, 0, 0, 0, -nms_MerchantRecipe, "MerchantRecipe", 28, jl_Object, [], 0, 3, 0, 0, $java.nms_InventoryMerchant, 0, jl_Object, [nms_IInventory], 0, 3, 0, ["$getStackInSlot", function(var_1) { return $java.nms_InventoryMerchant_getStackInSlot(this, var_1); }, "$decrStackSize", function(var_1, var_2) { return $java.nms_InventoryMerchant_decrStackSize(this, var_1, var_2); }, "$setInventorySlotContents", function(var_1, var_2) { $java.nms_InventoryMerchant_setInventorySlotContents(this, var_1, var_2); }, "$getInventoryStackLimit", function() { return $java.nms_InventoryMerchant_getInventoryStackLimit(this); -}, "$onInventoryChanged", function() { $java.nms_InventoryMerchant_onInventoryChanged(this); }]]); -$rt_metadata([nms_InventoryEnderChest, 0, $java.nms_InventoryBasic, [], 0, 3, 0, ["$isUseableByPlayer", function(var_1) { return $java.nms_InventoryEnderChest_isUseableByPlayer(this, var_1); }, "$openChest", function() { $java.nms_InventoryEnderChest_openChest(this); }, "$closeChest", function() { $java.nms_InventoryEnderChest_closeChest(this); }], -nms_ContainerPlayer, 0, nms_Container, [], 0, 3, 0, ["$onCraftMatrixChanged", function(var_1) { $java.nms_ContainerPlayer_onCraftMatrixChanged(this, var_1); }, "$onCraftGuiClosed", function(var_1) { nms_ContainerPlayer_onCraftGuiClosed(this, var_1); }, "$canInteractWith", function(var_1) { return $java.nms_ContainerPlayer_canInteractWith(this, var_1); }, "$transferStackInSlot", function(var_1, var_2) { return $java.nms_ContainerPlayer_transferStackInSlot(this, var_1, var_2); }, "$func_94530_a", function(var_1, -var_2) { return $java.nms_ContainerPlayer_func_94530_a(this, var_1, var_2); }], -nms_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); }], +}, "$onInventoryChanged", function() { $java.nms_InventoryMerchant_onInventoryChanged(this); }], +nms_MerchantRecipe, "MerchantRecipe", 28, jl_Object, [], 0, 3, 0, 0]); +$rt_metadata([nms_WorldProviderHell, 0, nms_WorldProvider, [], 0, 3, 0, ["$registerWorldChunkManager", function() { $java.nms_WorldProviderHell_registerWorldChunkManager(this); }, "$getFogColor0", function(var_1, var_2) { return $java.nms_WorldProviderHell_getFogColor(this, var_1, var_2); }, "$generateLightBrightnessTable", function() { $java.nms_WorldProviderHell_generateLightBrightnessTable(this); }, "$isSurfaceWorld", function() { return $java.nms_WorldProviderHell_isSurfaceWorld(this); }, "$calculateCelestialAngle", +function(var_1, var_2) { return $java.nms_WorldProviderHell_calculateCelestialAngle(this, var_1, var_2); }, "$canRespawnHere", function() { return $java.nms_WorldProviderHell_canRespawnHere(this); }, "$doesXZShowFog", function(var_1, var_2) { return $java.nms_WorldProviderHell_doesXZShowFog(this, var_1, var_2); }], nms_WorldProviderEnd, 0, nms_WorldProvider, [], 0, 3, 0, ["$registerWorldChunkManager", function() { $java.nms_WorldProviderEnd_registerWorldChunkManager(this); }, "$calculateCelestialAngle", function(var_1, var_2) { return $java.nms_WorldProviderEnd_calculateCelestialAngle(this, var_1, var_2); }, "$calcSunriseSunsetColors", function(var_1, var_2) { return $java.nms_WorldProviderEnd_calcSunriseSunsetColors(this, var_1, var_2); }, "$getFogColor0", function(var_1, var_2) { return $java.nms_WorldProviderEnd_getFogColor(this, var_1, var_2); }, "$isSkyColored", function() { return $java.nms_WorldProviderEnd_isSkyColored(this); }, "$canRespawnHere", function() { return $java.nms_WorldProviderEnd_canRespawnHere(this); }, "$isSurfaceWorld", function() { return $java.nms_WorldProviderEnd_isSurfaceWorld(this); }, "$getCloudHeight", function() { return $java.nms_WorldProviderEnd_getCloudHeight(this); }, "$doesXZShowFog", function(var_1, var_2) { return $java.nms_WorldProviderEnd_doesXZShowFog(this, var_1, var_2); }], $java.nms_ScoreDummyCriteria, "ScoreDummyCriteria", 28, jl_Object, [nms_ScoreObjectiveCriteria], 0, 3, 0, 0, $java.nms_ScoreHealthCriteria, "ScoreHealthCriteria", 28, $java.nms_ScoreDummyCriteria, [], 0, 3, 0, 0, +nms_InventoryEnderChest, 0, $java.nms_InventoryBasic, [], 0, 3, 0, ["$isUseableByPlayer", function(var_1) { return $java.nms_InventoryEnderChest_isUseableByPlayer(this, var_1); }, "$openChest", function() { $java.nms_InventoryEnderChest_openChest(this); }, "$closeChest", function() { $java.nms_InventoryEnderChest_closeChest(this); }], +nms_ContainerPlayer, 0, nms_Container, [], 0, 3, 0, ["$onCraftMatrixChanged", function(var_1) { $java.nms_ContainerPlayer_onCraftMatrixChanged(this, var_1); }, "$onCraftGuiClosed", function(var_1) { nms_ContainerPlayer_onCraftGuiClosed(this, var_1); }, "$canInteractWith", function(var_1) { return $java.nms_ContainerPlayer_canInteractWith(this, var_1); }, "$transferStackInSlot", function(var_1, var_2) { return $java.nms_ContainerPlayer_transferStackInSlot(this, var_1, var_2); }, "$func_94530_a", function(var_1, +var_2) { return $java.nms_ContainerPlayer_func_94530_a(this, var_1, var_2); }], nms_InventoryCraftResult, 0, jl_Object, [nms_IInventory], 0, 3, 0, ["$getStackInSlot", function(var_1) { return $java.nms_InventoryCraftResult_getStackInSlot(this, var_1); }, "$decrStackSize", function(var_1, var_2) { return $java.nms_InventoryCraftResult_decrStackSize(this, var_1, var_2); }, "$setInventorySlotContents", function(var_1, var_2) { $java.nms_InventoryCraftResult_setInventorySlotContents(this, var_1, var_2); }, "$getInventoryStackLimit", function() { return $java.nms_InventoryCraftResult_getInventoryStackLimit(this); }, "$onInventoryChanged", function() { $java.nms_InventoryCraftResult_onInventoryChanged(this); }], $java.nms_SlotCrafting, "SlotCrafting", 28, $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); }], @@ -231218,16 +231218,16 @@ $rt_stringPool(["Can\'t enter monitor from another thread synchronously", "@", " "chat.link.confirmTrusted", "gui.yes", "gui.no", "chat.link.open", "gui.cancel", "chat.copy", "chat.link.warning", "TextureHolder{width=", ", height=", "transferFromImage called with a BufferedImage with dimensions (", ") larger than the Texture dimensions (", "). Ignoring.", "Failed to read animation info for ", "An objective with the name \'", "\' already exists!", "Player is either on another team or not on any team. Cannot remove from team \'", "\'.", "http://", "^(?:(https?)://)?([-\\w_\\.]{2,}\\.[a-z]{2,4})(/\\S*)?$", "Slot{originX=", ", originY=", ", width=", ", texture=", ", subSlots=", "Duplicate enchantment id!", "enchantment.", "enchantment.level.", "oxygen", "waterWorker", "thorns", "knockback", "lootBonus", "lootBonusDigger", "digging", "untouching", "durability", "arrowDamage", "arrowKnockback", "arrowFire", "arrowInfinite", "UTC", "GMT", "00", "tile.bed.notValid", "gameMode.changed", "Payload may not be larger than 32k", "Key was smaller than nothing! Weird key!", "enchantment.protect.", "fall", "explosion", "projectile", "damage.thorns", "enchantment.damage.", "undead", "arthropods", "armor", "armor_feet", "armor_legs", "armor_torso", "armor_head", "weapon", "digger", "Id must not be null", "Unknown zone type: ", "Unknown mode: ", "GMT+00:00", "common", "Common", "uncommon", "Uncommon", "rare", "Rare", "epic", "Epic", "options.title", "options.difficulty.hardcore", "options.video", "options.controls", "options.language", "options.multiplayer.title", "options.texture.pack", "options.snooper.view", "Video Settings", "Controls", -"options.languageWarning", "selectServer.edit", "selectServer.delete", "selectServer.select", "selectServer.direct", "selectServer.add", "selectServer.refresh", "selectServer.deleteQuestion", "\'", "\' ", "selectServer.deleteWarning", "selectServer.deleteButton", "selectServer.defaultName", "multiplayer.title", "Close", "383", "Give", "Toggle Notebot", "Toggle Legit mode", "Toggle Noclip", "Stopped notebot!", "eat", "drink", "block", "> ", " <", "/item/sign.png", "blockId", "blockData", "facing", "progress", +"options.languageWarning", "selectServer.edit", "selectServer.delete", "selectServer.select", "selectServer.direct", "selectServer.add", "selectServer.refresh", "selectServer.deleteQuestion", "\'", "\' ", "selectServer.deleteWarning", "selectServer.deleteButton", "selectServer.defaultName", "multiplayer.title", "Close", "383", "Give", "Toggle Notebot", "Toggle Legit mode", "Toggle Flight", "Stopped notebot!", "eat", "drink", "block", "> ", " <", "/item/sign.png", "blockId", "blockData", "facing", "progress", "extending", "container.chest", "Items", "CustomName", "Slot", "random.chestopen", "random.chestclosed", "/item/chests/trap_small.png", "/item/xmaschest.png", "/item/chest.png", "/item/chests/trap_large.png", "/item/largexmaschest.png", "/item/largechest.png", "/item/enderchest.png", "container.enchant", "/item/book.png", "/misc/particlefield.png", "Primary", "Secondary", "Levels", "/misc/beam.png", "Malformed input of length ", "Unmappable characters of length ", "Wrong location! ", "options.videoTitle", "options.farWarning1", "options.farWarning2", "controls.title", "??? ", "options.chat.title", "ar_SA", "he_IL", "selectServer.hiddenAddress", "Server out of date!", "Client out of date!", "(no connection)", "3rd party", "addServer.enterIp", "https", "addServer.SSLWarn1", "addServer.SSLWarn2", "addServer.add", "addServer.hideAddress", "addServer.title", "addServer.enterName", "Playing \"", "\" on notebot!", "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", "Song length must not be negative.", "Song height must not be negative.", "Tempo is too small!", "Tempo must be a multiplication of 25.", "Auto-save duration must be from 1 to 60.", "Time signature must be from 2 to 8.", "RMinutes spent must not be negative.", "Right-click count must not be negative.", "Left-click count must not be negative.", "Blocks added must not be negative.", "Blocks removed must not be negative.", "Note position must not be negative.", -"Volume must be from 0 to 100.", "Pitch must be from 0 to 87.", "ID must be from 1 to 9.", "HARP", "BASS", "DRUM", "SNARE", "CLICK", "GUITAR", "FLUTE", "BELL", "CHIME", "XYLOPHONE", "flat", "largeBiomes", "default_1_1", "NOT_SET", "SURVIVAL", "survival", "CREATIVE", "creative", "ADVENTURE", "adventure", "doFireTick", "doMobSpawning", "commandBlockOutput", "vines", "multiplayer.downloadingTerrain", "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", "###", "#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 ", +"Volume must be from 0 to 100.", "Pitch must be from 0 to 87.", "ID must be from 1 to 9.", "HARP", "BASS", "DRUM", "SNARE", "CLICK", "GUITAR", "FLUTE", "BELL", "CHIME", "XYLOPHONE", "flat", "largeBiomes", "default_1_1", "NOT_SET", "SURVIVAL", "survival", "CREATIVE", "creative", "ADVENTURE", "adventure", "doFireTick", "doMobSpawning", "commandBlockOutput", "vines", "multiplayer.downloadingTerrain", "dummy", "deathCount", "playerKillCount", "totalKillCount", "health", "/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", "MC|BEdit", "MC|BSign", "book.editTitle", "book.finalizeWarning", "book.pageIndicator", "/gui/book.png", "OW KNOWS!"]); jl_String.prototype.toString = function() { return $rt_ustr(this); diff --git a/src/main/java/me/ayunami2000/ayuncraft/GuiScreenModules.java b/src/main/java/me/ayunami2000/ayuncraft/GuiScreenModules.java index a138a36..dfe0d3d 100644 --- a/src/main/java/me/ayunami2000/ayuncraft/GuiScreenModules.java +++ b/src/main/java/me/ayunami2000/ayuncraft/GuiScreenModules.java @@ -21,7 +21,7 @@ public class GuiScreenModules extends GuiScreen { this.buttonList.add(new GuiButton(1, this.width / 2 - 100, this.height / 6 + 124, "Give")); this.buttonList.add(new GuiButton(2, this.width / 2 - 100, this.height / 6 + 100, "Toggle Notebot")); this.buttonList.add(new GuiButton(3, this.width / 2 - 100, this.height / 6 + 76, "Toggle Legit mode")); - this.buttonList.add(new GuiButton(4, this.width / 2 - 100, this.height / 6 + 52, "Toggle Noclip")); + this.buttonList.add(new GuiButton(4, this.width / 2 - 100, this.height / 6 + 52, "Toggle Flight")); } public void onGuiClosed() { @@ -79,7 +79,7 @@ public class GuiScreenModules extends GuiScreen { }else if(par1GuiButton.id == 3){ NoteblockPlayer.legit=!NoteblockPlayer.legit; }else if(par1GuiButton.id == 4){ - mc.thePlayer.noClip=!mc.thePlayer.noClip; + mc.thePlayer.capabilities.isFlying=!mc.thePlayer.capabilities.isFlying; } }