From b840c50b26b6d405a5b3cbbb88f72bab87f1d070 Mon Sep 17 00:00:00 2001 From: ayunami2000 Date: Mon, 17 Jan 2022 16:25:06 -0500 Subject: [PATCH] fard --- javascript/classes.js | 2484 ++++++++--------- .../ayunami2000/ayuncraft/tmi/TMIConfig.java | 2 +- .../ayuncraft/tmi/TMIController.java | 12 +- .../ayuncraft/tmi/TMIItemSnow.java | 2 +- .../ayuncraft/tmi/TMIPrivateFields.java | 40 +- .../ayunami2000/ayuncraft/tmi/TMIUtils.java | 14 +- .../ayuncraft/tmi/_tmi_MgCanvas.java | 2 +- .../ayuncraft/tmi/_tmi_MgTextField.java | 15 +- src/main/java/net/minecraft/src/Block.java | 2 +- .../java/net/minecraft/src/EntityList.java | 2 +- src/main/java/net/minecraft/src/Gui.java | 2 +- .../minecraft/src/GuiContainerCreative.java | 4 +- .../java/net/minecraft/src/GuiTextField.java | 8 +- .../java/net/minecraft/src/ItemStack.java | 2 +- .../net/minecraft/src/PlayerControllerMP.java | 2 +- .../minecraft/src/SlotCreativeInventory.java | 2 +- 16 files changed, 1303 insertions(+), 1292 deletions(-) diff --git a/javascript/classes.js b/javascript/classes.js index 5deab7a..72e7817 100644 --- a/javascript/classes.js +++ b/javascript/classes.js @@ -1185,9 +1185,9 @@ function nle_Client_main($args) { maan_Instrument__clinit_(); nms_EnumGameType__clinit_(); nms_WorldType__clinit_(); + nms_GuiMerchant__clinit_(); nms_GuiWinGame__clinit_(); nms_ScoreObjectiveCriteria__clinit_(); - nms_GuiMerchant__clinit_(); nms_GuiChest__clinit_(); nms_GuiCrafting__clinit_(); nms_GuiBeacon__clinit_(); @@ -1202,8 +1202,8 @@ function nle_Client_main($args) { nms_EnumCreatureAttribute__clinit_(); nms_EntityFootStepFX__clinit_(); nms_EntityLargeExplodeFX__clinit_(); - nms_GuiButtonMerchant__clinit_(); nms_GuiBeaconButton__clinit_(); + nms_GuiButtonMerchant__clinit_(); nms_GuiScreenBook__clinit_(); nms_GuiButtonNextPage__clinit_(); nle_Client_registerErrorHandler$js_body$_5(); @@ -56385,12 +56385,6 @@ function jn_IntBufferOverByteBufferBigEndian_putElement($this, $index, $value) { $this.$byteByffer.$array.data[($this.$start3 + $index | 0) + 2 | 0] = $value >> 8 << 24 >> 24; $this.$byteByffer.$array.data[($this.$start3 + $index | 0) + 3 | 0] = $value << 24 >> 24; } -function cbpc_IEND() { - cbpc_Chunk.call(this); -} -function cbpc_IDAT() { - cbpc_Chunk.call(this); -} function cbpc_PLTE() { cbpc_Chunk.call(this); this.$color = null; @@ -56418,6 +56412,12 @@ function cbpc_PLTE_build($this) { function cbpc_PLTE_getColor($this, $i) { return $this.$color.data[$i]; } +function cbpc_IDAT() { + cbpc_Chunk.call(this); +} +function cbpc_IEND() { + cbpc_Chunk.call(this); +} function jl_Double() { jl_Number.call(this); this.$value6 = 0.0; @@ -181773,114 +181773,6 @@ $java.nlea_EaglerAdapterImpl2$12_onTimer$exported$0 = function(var$0) { nlea_EaglerAdapterImpl2_$callClinit(); nlea_EaglerAdapterImpl2_canvas.requestPointerLock(); }; -$java.nms_SlotCreativeInventory = function() { - var a = this; $java.nms_Slot.call(a); - a.$theSlot0 = null; - a.$theCreativeInventory = null; -}; -$java.nms_SlotCreativeInventory_onPickupFromSlot = function($this, $par1EntityPlayer, $par2ItemStack) { - var var$3, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$3 = $thread.pop();$par2ItemStack = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$3 = $this.$theSlot0; - $ptr = 1; - case 1: - var$3.$onPickupFromSlot($par1EntityPlayer, $par2ItemStack); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, $par2ItemStack, var$3, $ptr); -}; -$java.nms_SlotCreativeInventory_isItemValid = function($this, $par1ItemStack) { - return $this.$theSlot0.$isItemValid($par1ItemStack); -}; -$java.nms_SlotCreativeInventory_getStack = function($this) { - return $this.$theSlot0.$getStack(); -}; -$java.nms_SlotCreativeInventory_getHasStack = function($this) { - return $this.$theSlot0.$getHasStack(); -}; -$java.nms_SlotCreativeInventory_putStack = function($this, $par1ItemStack) { - var var$2, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$2 = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$2 = $this.$theSlot0; - $ptr = 1; - case 1: - var$2.$putStack($par1ItemStack); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, var$2, $ptr); -}; -$java.nms_SlotCreativeInventory_onSlotChanged = function($this) { - var var$1, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$1 = $this.$theSlot0; - $ptr = 1; - case 1: - var$1.$onSlotChanged(); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, $ptr); -}; -$java.nms_SlotCreativeInventory_getSlotStackLimit = function($this) { - return $this.$theSlot0.$getSlotStackLimit(); -}; -$java.nms_SlotCreativeInventory_getBackgroundIconIndex = function($this) { - return $this.$theSlot0.$getBackgroundIconIndex(); -}; -$java.nms_SlotCreativeInventory_decrStackSize = function($this, $par1) { - var var$2, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$2 = $this.$theSlot0; - $ptr = 1; - case 1: - $tmp = var$2.$decrStackSize0($par1); - if ($rt_suspending()) { - break main; - } - var$2 = $tmp; - return var$2; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, var$2, $ptr); -}; -$java.nms_SlotCreativeInventory_func_75240_a = function($par0SlotCreativeInventory) { - return $par0SlotCreativeInventory.$theSlot0; -}; function nms_Enchantment() { var a = this; jl_Object.call(a); a.$effectId = 0; @@ -189797,6 +189689,114 @@ function nms_RenderSorter_doCompare($this, $par1WorldRenderer, $par2WorldRendere $java.nms_RenderSorter_compare = function($this, $par1Obj, $par2Obj) { return nms_RenderSorter_doCompare($this, $par1Obj, $par2Obj); }; +$java.nms_SlotCreativeInventory = function() { + var a = this; $java.nms_Slot.call(a); + a.$theSlot0 = null; + a.$theCreativeInventory = null; +}; +$java.nms_SlotCreativeInventory_onPickupFromSlot = function($this, $par1EntityPlayer, $par2ItemStack) { + var var$3, $ptr, $tmp; + $ptr = 0; + if ($rt_resuming()) { + var $thread = $rt_nativeThread(); + $ptr = $thread.pop();var$3 = $thread.pop();$par2ItemStack = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); + } + main: while (true) { switch ($ptr) { + case 0: + var$3 = $this.$theSlot0; + $ptr = 1; + case 1: + var$3.$onPickupFromSlot($par1EntityPlayer, $par2ItemStack); + if ($rt_suspending()) { + break main; + } + return; + default: $rt_invalidPointer(); + }} + $rt_nativeThread().push($this, $par1EntityPlayer, $par2ItemStack, var$3, $ptr); +}; +$java.nms_SlotCreativeInventory_isItemValid = function($this, $par1ItemStack) { + return $this.$theSlot0.$isItemValid($par1ItemStack); +}; +$java.nms_SlotCreativeInventory_getStack = function($this) { + return $this.$theSlot0.$getStack(); +}; +$java.nms_SlotCreativeInventory_getHasStack = function($this) { + return $this.$theSlot0.$getHasStack(); +}; +$java.nms_SlotCreativeInventory_putStack = function($this, $par1ItemStack) { + var var$2, $ptr, $tmp; + $ptr = 0; + if ($rt_resuming()) { + var $thread = $rt_nativeThread(); + $ptr = $thread.pop();var$2 = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); + } + main: while (true) { switch ($ptr) { + case 0: + var$2 = $this.$theSlot0; + $ptr = 1; + case 1: + var$2.$putStack($par1ItemStack); + if ($rt_suspending()) { + break main; + } + return; + default: $rt_invalidPointer(); + }} + $rt_nativeThread().push($this, $par1ItemStack, var$2, $ptr); +}; +$java.nms_SlotCreativeInventory_onSlotChanged = function($this) { + var var$1, $ptr, $tmp; + $ptr = 0; + if ($rt_resuming()) { + var $thread = $rt_nativeThread(); + $ptr = $thread.pop();var$1 = $thread.pop();$this = $thread.pop(); + } + main: while (true) { switch ($ptr) { + case 0: + var$1 = $this.$theSlot0; + $ptr = 1; + case 1: + var$1.$onSlotChanged(); + if ($rt_suspending()) { + break main; + } + return; + default: $rt_invalidPointer(); + }} + $rt_nativeThread().push($this, var$1, $ptr); +}; +$java.nms_SlotCreativeInventory_getSlotStackLimit = function($this) { + return $this.$theSlot0.$getSlotStackLimit(); +}; +$java.nms_SlotCreativeInventory_getBackgroundIconIndex = function($this) { + return $this.$theSlot0.$getBackgroundIconIndex(); +}; +$java.nms_SlotCreativeInventory_decrStackSize = function($this, $par1) { + var var$2, $ptr, $tmp; + $ptr = 0; + if ($rt_resuming()) { + var $thread = $rt_nativeThread(); + $ptr = $thread.pop();var$2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); + } + main: while (true) { switch ($ptr) { + case 0: + var$2 = $this.$theSlot0; + $ptr = 1; + case 1: + $tmp = var$2.$decrStackSize0($par1); + if ($rt_suspending()) { + break main; + } + var$2 = $tmp; + return var$2; + default: $rt_invalidPointer(); + }} + $rt_nativeThread().push($this, $par1, var$2, $ptr); +}; +$java.nms_SlotCreativeInventory_func_75240_a = function($par0SlotCreativeInventory) { + return $par0SlotCreativeInventory.$theSlot0; +}; function nms_GuiOptions() { var a = this; nms_GuiScreen.call(a); a.$parentScreen = null; @@ -207886,386 +207886,150 @@ function nms_EntitySenses_clearSensingCache($this) { function cjj_GZIPInputStream() { cjj_InflaterInputStream.call(this); } -function nms_GuiWinGame() { - var a = this; nms_GuiScreen.call(a); - a.$updateCounter3 = 0; - a.$lines = null; - a.$field_73989_c = 0; - a.$field_73987_d = 0.0; +function nms_EntityCrit2FX() { + var a = this; nms_EntityFX.call(a); + a.$theEntity = null; + a.$currentLife = 0; + a.$maximumLife = 0; + a.$particleName0 = null; } -$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; +$java.nms_EntityCrit2FX__init_ = function(var_0, var_1, var_2) { + var var_3 = new nms_EntityCrit2FX(); + nms_EntityCrit2FX__init_(var_3, var_0, var_1, var_2); + return var_3; }; -function nms_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; +function nms_EntityCrit2FX__init_($this, $par1World, $par2Entity, $par3Str) { + var $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(); + $ptr = $thread.pop();$par3Str = $thread.pop();$par2Entity = $thread.pop();$par1World = $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; + $java.nms_EntityFX__init_2($this, $par1World, $par2Entity.$posX, $par2Entity.$boundingBox.$minY + $par2Entity.$height1 / 2.0, $par2Entity.$posZ, $par2Entity.$motionX, $par2Entity.$motionY, $par2Entity.$motionZ); + $this.$currentLife = 0; + $this.$maximumLife = 0; + $this.$theEntity = $par2Entity; + $this.$maximumLife = 3; + $this.$particleName0 = $par3Str; $ptr = 1; case 1: - nmc_Minecraft_displayGuiScreen(var$3, var$2); + $java.nms_EntityCrit2FX_onUpdate($this); if ($rt_suspending()) { break main; } return; default: $rt_invalidPointer(); }} - $rt_nativeThread().push($this, $var1, var$2, var$3, var$4, $ptr); + $rt_nativeThread().push($this, $par1World, $par2Entity, $par3Str, $ptr); +} +$java.nms_EntityCrit2FX_renderParticle = function($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7) { + return; }; -$java.nms_GuiWinGame_keyTyped = function($this, $par1, $par2) { - var var$3, var$4, var$5, $$je, $ptr, $tmp; +$java.nms_EntityCrit2FX_onUpdate = function($this) { + var $var1, var$2, var$3, $var2, $var4, $var6, $var8, $var10, $var12, var$10, var$11, var$12, var$13, $ptr, $tmp; $ptr = 0; if ($rt_resuming()) { var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); + $ptr = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();$var12 = $thread.pop();$var10 = $thread.pop();$var8 = $thread.pop();$var6 = $thread.pop();$var4 = $thread.pop();$var2 = $thread.pop();var$3 = $thread.pop();var$2 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); } main: while (true) { switch ($ptr) { case 0: - 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; + $var1 = 0; + var$2 = 24; + while ($var1 < 16) { + var$3 = $this.$rand0; + var$3.$seed = Long_and(Long_add(Long_mul(var$3.$seed, new Long(3740067437, 5)), Long_fromInt(11)), new Long(4294967295, 65535)); + $var2 = Long_shru(var$3.$seed, var$2).lo / 1.6777216E7 * 2.0 - 1.0; + var$3 = $this.$rand0; + var$3.$seed = Long_and(Long_add(Long_mul(var$3.$seed, new Long(3740067437, 5)), Long_fromInt(11)), new Long(4294967295, 65535)); + $var4 = Long_shru(var$3.$seed, var$2).lo / 1.6777216E7 * 2.0 - 1.0; + var$3 = $this.$rand0; + var$3.$seed = Long_and(Long_add(Long_mul(var$3.$seed, new Long(3740067437, 5)), Long_fromInt(11)), new Long(4294967295, 65535)); + $var6 = Long_shru(var$3.$seed, var$2).lo / 1.6777216E7 * 2.0 - 1.0; + if ($var2 * $var2 + $var4 * $var4 + $var6 * $var6 <= 1.0) { + $var8 = $this.$theEntity.$posX + $var2 * $this.$theEntity.$width1 / 4.0; + $var10 = $this.$theEntity.$boundingBox.$minY + $this.$theEntity.$height1 / 2.0 + $var4 * $this.$theEntity.$height1 / 4.0; + $var12 = $this.$theEntity.$posZ + $var6 * $this.$theEntity.$width1 / 4.0; + var$3 = $this.$worldObj; + var$10 = $this.$particleName0; + var$11 = $var4 + 0.2; + var$12 = 0; + if (var$12 < var$3.$worldAccesses.$size0) { + var$13 = var$3.$worldAccesses; + if (var$12 >= 0 && var$12 < var$13.$size0) { + var$13 = var$13.$array1.data[var$12]; + $ptr = 1; + continue main; } + var$3 = new jl_IndexOutOfBoundsException; + var$3.$suppressionEnabled = 1; + var$3.$writableStackTrace = 1; + $rt_throw(var$3); } - 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); } + $var1 = $var1 + 1 | 0; } - var$4 = $this.$mc4; - var$3 = null; - $ptr = 1; + $this.$currentLife = $this.$currentLife + 1 | 0; + if ($this.$currentLife >= $this.$maximumLife) + $this.$isDead = 1; + return; case 1: - nmc_Minecraft_displayGuiScreen(var$4, var$3); + nms_RenderGlobal_doSpawnParticle(var$13, var$10, $var8, $var10, $var12, $var2, var$11, $var6); if ($rt_suspending()) { break main; } + var$12 = var$12 + 1 | 0; + a: while (true) { + if (var$12 < var$3.$worldAccesses.$size0) { + var$13 = var$3.$worldAccesses; + if (var$12 >= 0 && var$12 < var$13.$size0) { + var$13 = var$13.$array1.data[var$12]; + continue main; + } + var$3 = new jl_IndexOutOfBoundsException; + var$3.$suppressionEnabled = 1; + var$3.$writableStackTrace = 1; + $rt_throw(var$3); + } + while (true) { + $var1 = $var1 + 1 | 0; + if ($var1 >= 16) + break a; + var$3 = $this.$rand0; + var$3.$seed = Long_and(Long_add(Long_mul(var$3.$seed, new Long(3740067437, 5)), Long_fromInt(11)), new Long(4294967295, 65535)); + $var2 = Long_shru(var$3.$seed, var$2).lo / 1.6777216E7 * 2.0 - 1.0; + var$3 = $this.$rand0; + var$3.$seed = Long_and(Long_add(Long_mul(var$3.$seed, new Long(3740067437, 5)), Long_fromInt(11)), new Long(4294967295, 65535)); + $var4 = Long_shru(var$3.$seed, var$2).lo / 1.6777216E7 * 2.0 - 1.0; + var$3 = $this.$rand0; + var$3.$seed = Long_and(Long_add(Long_mul(var$3.$seed, new Long(3740067437, 5)), Long_fromInt(11)), new Long(4294967295, 65535)); + $var6 = Long_shru(var$3.$seed, var$2).lo / 1.6777216E7 * 2.0 - 1.0; + if ($var2 * $var2 + $var4 * $var4 + $var6 * $var6 > 1.0) + continue; + else + break; + } + $var8 = $this.$theEntity.$posX + $var2 * $this.$theEntity.$width1 / 4.0; + $var10 = $this.$theEntity.$boundingBox.$minY + $this.$theEntity.$height1 / 2.0 + $var4 * $this.$theEntity.$height1 / 4.0; + $var12 = $this.$theEntity.$posZ + $var6 * $this.$theEntity.$width1 / 4.0; + var$3 = $this.$worldObj; + var$10 = $this.$particleName0; + var$11 = $var4 + 0.2; + var$12 = 0; + } + $this.$currentLife = $this.$currentLife + 1 | 0; + if ($this.$currentLife >= $this.$maximumLife) + $this.$isDead = 1; return; default: $rt_invalidPointer(); }} - $rt_nativeThread().push($this, $par1, $par2, var$3, var$4, var$5, $ptr); + $rt_nativeThread().push($this, $var1, var$2, var$3, $var2, $var4, $var6, $var8, $var10, $var12, var$10, var$11, var$12, var$13, $ptr); }; -$java.nms_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(2859)).data.length; - var$5 = 0; - while (var$5 < var$4) { - nle_EaglerProfile_$callClinit(); - $var1 = jl_String_replaceAll($var1, $rt_s(2860), 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(2861), 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(2862)).data.length; - var$10 = 0; - while (var$10 < $var6_0) { - nle_EaglerProfile_$callClinit(); - $var1 = jl_String_replaceAll(jl_String_replaceAll($var1, $rt_s(2860), nle_EaglerProfile_username), $rt_s(2863), $rt_s(2864)); - 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_EntityCrit2FX_getFXLayer = function($this) { + return 3; }; -$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(2865))) - 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(2866); - 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_Explosion() { var a = this; jl_Object.call(a); a.$isFlaming = 0; @@ -208946,182 +208710,6 @@ function nms_WorldProviderSurface__init_($this) { $this.$dimensionId = 0; $this.$colorsSunriseSunset = $rt_createFloatArray(4); } -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(2867); - ju_HashMap_putImpl($java.nms_ScoreObjectiveCriteria_field_96643_a, $rt_s(2867), var$1); - $java.nms_ScoreObjectiveCriteria_field_96641_b = var$1; - var$2 = new $java.nms_ScoreDummyCriteria; - var$2.$field_96644_g = $rt_s(2868); - ju_HashMap_putImpl($java.nms_ScoreObjectiveCriteria_field_96643_a, $rt_s(2868), var$2); - $java.nms_ScoreObjectiveCriteria_field_96642_c = var$2; - var$2 = new $java.nms_ScoreDummyCriteria; - var$2.$field_96644_g = $rt_s(2869); - ju_HashMap_putImpl($java.nms_ScoreObjectiveCriteria_field_96643_a, $rt_s(2869), var$2); - nms_ScoreObjectiveCriteria_field_96639_d = var$2; - var$2 = new $java.nms_ScoreDummyCriteria; - var$2.$field_96644_g = $rt_s(2870); - ju_HashMap_putImpl($java.nms_ScoreObjectiveCriteria_field_96643_a, $rt_s(2870), var$2); - nms_ScoreObjectiveCriteria_field_96640_e = var$2; - var$2 = new $java.nms_ScoreHealthCriteria; - var$2.$field_96644_g = $rt_s(2871); - ju_HashMap_putImpl($java.nms_ScoreObjectiveCriteria_field_96643_a, $rt_s(2871), var$2); - $java.nms_ScoreObjectiveCriteria_field_96638_f = var$2; -} -function nms_EntityCrit2FX() { - var a = this; nms_EntityFX.call(a); - a.$theEntity = null; - a.$currentLife = 0; - a.$maximumLife = 0; - a.$particleName0 = null; -} -$java.nms_EntityCrit2FX__init_ = function(var_0, var_1, var_2) { - var var_3 = new nms_EntityCrit2FX(); - nms_EntityCrit2FX__init_(var_3, var_0, var_1, var_2); - return var_3; -}; -function nms_EntityCrit2FX__init_($this, $par1World, $par2Entity, $par3Str) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par3Str = $thread.pop();$par2Entity = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $java.nms_EntityFX__init_2($this, $par1World, $par2Entity.$posX, $par2Entity.$boundingBox.$minY + $par2Entity.$height1 / 2.0, $par2Entity.$posZ, $par2Entity.$motionX, $par2Entity.$motionY, $par2Entity.$motionZ); - $this.$currentLife = 0; - $this.$maximumLife = 0; - $this.$theEntity = $par2Entity; - $this.$maximumLife = 3; - $this.$particleName0 = $par3Str; - $ptr = 1; - case 1: - $java.nms_EntityCrit2FX_onUpdate($this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2Entity, $par3Str, $ptr); -} -$java.nms_EntityCrit2FX_renderParticle = function($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7) { - return; -}; -$java.nms_EntityCrit2FX_onUpdate = function($this) { - var $var1, var$2, var$3, $var2, $var4, $var6, $var8, $var10, $var12, var$10, var$11, var$12, var$13, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();$var12 = $thread.pop();$var10 = $thread.pop();$var8 = $thread.pop();$var6 = $thread.pop();$var4 = $thread.pop();$var2 = $thread.pop();var$3 = $thread.pop();var$2 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var1 = 0; - var$2 = 24; - while ($var1 < 16) { - var$3 = $this.$rand0; - var$3.$seed = Long_and(Long_add(Long_mul(var$3.$seed, new Long(3740067437, 5)), Long_fromInt(11)), new Long(4294967295, 65535)); - $var2 = Long_shru(var$3.$seed, var$2).lo / 1.6777216E7 * 2.0 - 1.0; - var$3 = $this.$rand0; - var$3.$seed = Long_and(Long_add(Long_mul(var$3.$seed, new Long(3740067437, 5)), Long_fromInt(11)), new Long(4294967295, 65535)); - $var4 = Long_shru(var$3.$seed, var$2).lo / 1.6777216E7 * 2.0 - 1.0; - var$3 = $this.$rand0; - var$3.$seed = Long_and(Long_add(Long_mul(var$3.$seed, new Long(3740067437, 5)), Long_fromInt(11)), new Long(4294967295, 65535)); - $var6 = Long_shru(var$3.$seed, var$2).lo / 1.6777216E7 * 2.0 - 1.0; - if ($var2 * $var2 + $var4 * $var4 + $var6 * $var6 <= 1.0) { - $var8 = $this.$theEntity.$posX + $var2 * $this.$theEntity.$width1 / 4.0; - $var10 = $this.$theEntity.$boundingBox.$minY + $this.$theEntity.$height1 / 2.0 + $var4 * $this.$theEntity.$height1 / 4.0; - $var12 = $this.$theEntity.$posZ + $var6 * $this.$theEntity.$width1 / 4.0; - var$3 = $this.$worldObj; - var$10 = $this.$particleName0; - var$11 = $var4 + 0.2; - var$12 = 0; - if (var$12 < var$3.$worldAccesses.$size0) { - var$13 = var$3.$worldAccesses; - if (var$12 >= 0 && var$12 < var$13.$size0) { - var$13 = var$13.$array1.data[var$12]; - $ptr = 1; - continue main; - } - var$3 = new jl_IndexOutOfBoundsException; - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - $rt_throw(var$3); - } - } - $var1 = $var1 + 1 | 0; - } - $this.$currentLife = $this.$currentLife + 1 | 0; - if ($this.$currentLife >= $this.$maximumLife) - $this.$isDead = 1; - return; - case 1: - nms_RenderGlobal_doSpawnParticle(var$13, var$10, $var8, $var10, $var12, $var2, var$11, $var6); - if ($rt_suspending()) { - break main; - } - var$12 = var$12 + 1 | 0; - a: while (true) { - if (var$12 < var$3.$worldAccesses.$size0) { - var$13 = var$3.$worldAccesses; - if (var$12 >= 0 && var$12 < var$13.$size0) { - var$13 = var$13.$array1.data[var$12]; - continue main; - } - var$3 = new jl_IndexOutOfBoundsException; - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - $rt_throw(var$3); - } - while (true) { - $var1 = $var1 + 1 | 0; - if ($var1 >= 16) - break a; - var$3 = $this.$rand0; - var$3.$seed = Long_and(Long_add(Long_mul(var$3.$seed, new Long(3740067437, 5)), Long_fromInt(11)), new Long(4294967295, 65535)); - $var2 = Long_shru(var$3.$seed, var$2).lo / 1.6777216E7 * 2.0 - 1.0; - var$3 = $this.$rand0; - var$3.$seed = Long_and(Long_add(Long_mul(var$3.$seed, new Long(3740067437, 5)), Long_fromInt(11)), new Long(4294967295, 65535)); - $var4 = Long_shru(var$3.$seed, var$2).lo / 1.6777216E7 * 2.0 - 1.0; - var$3 = $this.$rand0; - var$3.$seed = Long_and(Long_add(Long_mul(var$3.$seed, new Long(3740067437, 5)), Long_fromInt(11)), new Long(4294967295, 65535)); - $var6 = Long_shru(var$3.$seed, var$2).lo / 1.6777216E7 * 2.0 - 1.0; - if ($var2 * $var2 + $var4 * $var4 + $var6 * $var6 > 1.0) - continue; - else - break; - } - $var8 = $this.$theEntity.$posX + $var2 * $this.$theEntity.$width1 / 4.0; - $var10 = $this.$theEntity.$boundingBox.$minY + $this.$theEntity.$height1 / 2.0 + $var4 * $this.$theEntity.$height1 / 4.0; - $var12 = $this.$theEntity.$posZ + $var6 * $this.$theEntity.$width1 / 4.0; - var$3 = $this.$worldObj; - var$10 = $this.$particleName0; - var$11 = $var4 + 0.2; - var$12 = 0; - } - $this.$currentLife = $this.$currentLife + 1 | 0; - if ($this.$currentLife >= $this.$maximumLife) - $this.$isDead = 1; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, var$2, var$3, $var2, $var4, $var6, $var8, $var10, $var12, var$10, var$11, var$12, var$13, $ptr); -}; -$java.nms_EntityCrit2FX_getFXLayer = function($this) { - return 3; -}; $java.nms_WorldSettings = function() { var a = this; jl_Object.call(a); a.$seed0 = Long_ZERO; @@ -209236,7 +208824,7 @@ $java.nms_GuiDownloadTerrain_drawScreen = function($this, $par1, $par2, $par3) { nms_GuiScreen_drawBackground($this, 0); $var4 = nms_StringTranslate_instance; var$5 = $this.$fontRenderer0; - $var4 = nms_StringTranslate_translateKey($var4, $rt_s(2872)); + $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); @@ -209277,7 +208865,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(2873)); + $par4 = nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(2860)); $this.$field_94082_v = $par4; }; $java.nms_GuiMerchant_initGui = function($this) { @@ -209355,7 +208943,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(2874), ji_ByteArrayOutputStream_toByteArray($var3))); + nms_NetClientHandler_addToSendQueue(nmc_Minecraft_getNetHandler($this.$mc4), nms_Packet250CustomPayload__init_0($rt_s(2861), ji_ByteArrayOutputStream_toByteArray($var3))); break a; } catch ($$e) { $$je = $rt_wrapException($$e); @@ -209523,7 +209111,7 @@ $java.nms_GuiMerchant_getIMerchant = function($this) { function nms_GuiMerchant__clinit_() { var var$1; var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(2875); + var$1.$path = $rt_s(2862); var$1.$glObject = (-1); ju_ArrayList_add(nle_TextureLocation_locations, var$1); $java.nms_GuiMerchant_tex = var$1; @@ -209777,6 +209365,439 @@ $java.nms_MerchantRecipeList_readRecipiesFromStream = function($par0DataInputStr } return $var1; }; +$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_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(2863)).data.length; + var$5 = 0; + while (var$5 < var$4) { + nle_EaglerProfile_$callClinit(); + $var1 = jl_String_replaceAll($var1, $rt_s(2864), 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(2865), 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(2866)).data.length; + var$10 = 0; + while (var$10 < $var6_0) { + nle_EaglerProfile_$callClinit(); + $var1 = jl_String_replaceAll(jl_String_replaceAll($var1, $rt_s(2864), nle_EaglerProfile_username), $rt_s(2867), $rt_s(2868)); + 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(2869))) + 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(2870); + 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_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(2871); + ju_HashMap_putImpl($java.nms_ScoreObjectiveCriteria_field_96643_a, $rt_s(2871), var$1); + $java.nms_ScoreObjectiveCriteria_field_96641_b = var$1; + var$2 = new $java.nms_ScoreDummyCriteria; + var$2.$field_96644_g = $rt_s(2872); + ju_HashMap_putImpl($java.nms_ScoreObjectiveCriteria_field_96643_a, $rt_s(2872), var$2); + $java.nms_ScoreObjectiveCriteria_field_96642_c = var$2; + var$2 = new $java.nms_ScoreDummyCriteria; + var$2.$field_96644_g = $rt_s(2873); + ju_HashMap_putImpl($java.nms_ScoreObjectiveCriteria_field_96643_a, $rt_s(2873), var$2); + nms_ScoreObjectiveCriteria_field_96639_d = var$2; + var$2 = new $java.nms_ScoreDummyCriteria; + var$2.$field_96644_g = $rt_s(2874); + ju_HashMap_putImpl($java.nms_ScoreObjectiveCriteria_field_96643_a, $rt_s(2874), var$2); + nms_ScoreObjectiveCriteria_field_96640_e = var$2; + var$2 = new $java.nms_ScoreHealthCriteria; + var$2.$field_96644_g = $rt_s(2875); + ju_HashMap_putImpl($java.nms_ScoreObjectiveCriteria_field_96643_a, $rt_s(2875), var$2); + $java.nms_ScoreObjectiveCriteria_field_96638_f = var$2; +} function nms_EntityPickupFX() { var a = this; nms_EntityFX.call(a); a.$entityToPickUp = null; @@ -209899,27 +209920,6 @@ $java.nms_EntityPickupFX_onUpdate = function($this) { $java.nms_EntityPickupFX_getFXLayer = function($this) { return 3; }; -$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; @@ -210638,16 +210638,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; }; -$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_WorldProviderHell() { nms_WorldProvider.call(this); } @@ -210747,6 +210737,16 @@ $java.nms_WorldProviderEnd_getCloudHeight = function($this) { $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; @@ -220245,519 +220245,6 @@ function nms_EnumCreatureAttribute__clinit_() { var$3[2] = nms_EnumCreatureAttribute_ARTHROPOD; $java.nms_EnumCreatureAttribute_$VALUES = var$2; } -function nms_BlockBaseRailLogic() { - var a = this; jl_Object.call(a); - a.$logicWorld = null; - a.$railX = 0; - a.$railY = 0; - a.$railZ = 0; - a.$isStraightRail = 0; - a.$railChunkPosition = null; - a.$theRail = null; -} -function nms_BlockBaseRailLogic__init_(var_0, var_1, var_2, var_3, var_4) { - var var_5 = new nms_BlockBaseRailLogic(); - $java.nms_BlockBaseRailLogic__init_(var_5, var_0, var_1, var_2, var_3, var_4); - return var_5; -} -$java.nms_BlockBaseRailLogic__init_ = function($this, $par1, $par2, $par3, $par4, $par5) { - var $var6, $var7; - $this.$theRail = $par1; - $par1 = new ju_ArrayList; - $par1.$array1 = $rt_createArray(jl_Object, 10); - $this.$railChunkPosition = $par1; - $this.$logicWorld = $par2; - $this.$railX = $par3; - $this.$railY = $par4; - $this.$railZ = $par5; - $var6 = nms_World_getBlockId($par2, $par3, $par4, $par5); - $var7 = nms_World_getBlockMetadata($par2, $par3, $par4, $par5); - nms_Block_$callClinit(); - if (!nms_Block_blocksList.data[$var6].$isPowered) - $this.$isStraightRail = 0; - else { - $this.$isStraightRail = 1; - $var7 = $var7 & (-9); - } - $java.nms_BlockBaseRailLogic_setBasicRail($this, $var7); -}; -$java.nms_BlockBaseRailLogic_setBasicRail = function($this, $par1) { - var var$2, var$3, var$4, var$5; - a: { - var$2 = $this.$railChunkPosition; - ju_Arrays_fill(var$2.$array1, 0, var$2.$size0, null); - var$2.$size0 = 0; - if (!$par1) { - var$2 = $this.$railChunkPosition; - var$3 = new nms_ChunkPosition; - $par1 = $this.$railX; - var$4 = $this.$railY; - var$5 = $this.$railZ - 1 | 0; - var$3.$x4 = $par1; - var$3.$y3 = var$4; - var$3.$z5 = var$5; - ju_ArrayList_add(var$2, var$3); - var$2 = $this.$railChunkPosition; - var$3 = new nms_ChunkPosition; - $par1 = $this.$railX; - var$4 = $this.$railY; - var$5 = $this.$railZ + 1 | 0; - var$3.$x4 = $par1; - var$3.$y3 = var$4; - var$3.$z5 = var$5; - ju_ArrayList_add(var$2, var$3); - break a; - } - if ($par1 == 1) { - var$2 = $this.$railChunkPosition; - var$3 = new nms_ChunkPosition; - $par1 = $this.$railX - 1 | 0; - var$4 = $this.$railY; - var$5 = $this.$railZ; - var$3.$x4 = $par1; - var$3.$y3 = var$4; - var$3.$z5 = var$5; - ju_ArrayList_add(var$2, var$3); - var$2 = $this.$railChunkPosition; - var$3 = new nms_ChunkPosition; - $par1 = $this.$railX + 1 | 0; - var$4 = $this.$railY; - var$5 = $this.$railZ; - var$3.$x4 = $par1; - var$3.$y3 = var$4; - var$3.$z5 = var$5; - ju_ArrayList_add(var$2, var$3); - break a; - } - if ($par1 == 2) { - var$2 = $this.$railChunkPosition; - var$3 = new nms_ChunkPosition; - $par1 = $this.$railX - 1 | 0; - var$4 = $this.$railY; - var$5 = $this.$railZ; - var$3.$x4 = $par1; - var$3.$y3 = var$4; - var$3.$z5 = var$5; - ju_ArrayList_add(var$2, var$3); - var$2 = $this.$railChunkPosition; - var$3 = new nms_ChunkPosition; - var$5 = $this.$railX + 1 | 0; - $par1 = $this.$railY + 1 | 0; - var$4 = $this.$railZ; - var$3.$x4 = var$5; - var$3.$y3 = $par1; - var$3.$z5 = var$4; - ju_ArrayList_add(var$2, var$3); - break a; - } - if ($par1 == 3) { - var$2 = $this.$railChunkPosition; - var$3 = new nms_ChunkPosition; - $par1 = $this.$railX - 1 | 0; - var$4 = $this.$railY + 1 | 0; - var$5 = $this.$railZ; - var$3.$x4 = $par1; - var$3.$y3 = var$4; - var$3.$z5 = var$5; - ju_ArrayList_add(var$2, var$3); - var$2 = $this.$railChunkPosition; - var$3 = new nms_ChunkPosition; - $par1 = $this.$railX + 1 | 0; - var$4 = $this.$railY; - var$5 = $this.$railZ; - var$3.$x4 = $par1; - var$3.$y3 = var$4; - var$3.$z5 = var$5; - ju_ArrayList_add(var$2, var$3); - break a; - } - if ($par1 == 4) { - var$2 = $this.$railChunkPosition; - var$3 = new nms_ChunkPosition; - $par1 = $this.$railX; - var$4 = $this.$railY + 1 | 0; - var$5 = $this.$railZ - 1 | 0; - var$3.$x4 = $par1; - var$3.$y3 = var$4; - var$3.$z5 = var$5; - ju_ArrayList_add(var$2, var$3); - var$2 = $this.$railChunkPosition; - var$3 = new nms_ChunkPosition; - $par1 = $this.$railX; - var$4 = $this.$railY; - var$5 = $this.$railZ + 1 | 0; - var$3.$x4 = $par1; - var$3.$y3 = var$4; - var$3.$z5 = var$5; - ju_ArrayList_add(var$2, var$3); - break a; - } - if ($par1 == 5) { - var$2 = $this.$railChunkPosition; - var$3 = new nms_ChunkPosition; - $par1 = $this.$railX; - var$4 = $this.$railY; - var$5 = $this.$railZ - 1 | 0; - var$3.$x4 = $par1; - var$3.$y3 = var$4; - var$3.$z5 = var$5; - ju_ArrayList_add(var$2, var$3); - var$2 = $this.$railChunkPosition; - var$3 = new nms_ChunkPosition; - $par1 = $this.$railX; - var$4 = $this.$railY + 1 | 0; - var$5 = $this.$railZ + 1 | 0; - var$3.$x4 = $par1; - var$3.$y3 = var$4; - var$3.$z5 = var$5; - ju_ArrayList_add(var$2, var$3); - break a; - } - if ($par1 == 6) { - var$2 = $this.$railChunkPosition; - var$3 = new nms_ChunkPosition; - $par1 = $this.$railX + 1 | 0; - var$4 = $this.$railY; - var$5 = $this.$railZ; - var$3.$x4 = $par1; - var$3.$y3 = var$4; - var$3.$z5 = var$5; - ju_ArrayList_add(var$2, var$3); - ju_ArrayList_add($this.$railChunkPosition, $java.nms_ChunkPosition__init_($this.$railX, $this.$railY, $this.$railZ + 1 | 0)); - break a; - } - if ($par1 == 7) { - ju_ArrayList_add($this.$railChunkPosition, $java.nms_ChunkPosition__init_($this.$railX - 1 | 0, $this.$railY, $this.$railZ)); - ju_ArrayList_add($this.$railChunkPosition, $java.nms_ChunkPosition__init_($this.$railX, $this.$railY, $this.$railZ + 1 | 0)); - break a; - } - if ($par1 == 8) { - ju_ArrayList_add($this.$railChunkPosition, $java.nms_ChunkPosition__init_($this.$railX - 1 | 0, $this.$railY, $this.$railZ)); - ju_ArrayList_add($this.$railChunkPosition, $java.nms_ChunkPosition__init_($this.$railX, $this.$railY, $this.$railZ - 1 | 0)); - break a; - } - if ($par1 != 9) - break a; - ju_ArrayList_add($this.$railChunkPosition, $java.nms_ChunkPosition__init_($this.$railX + 1 | 0, $this.$railY, $this.$railZ)); - ju_ArrayList_add($this.$railChunkPosition, $java.nms_ChunkPosition__init_($this.$railX, $this.$railY, $this.$railZ - 1 | 0)); - } -}; -$java.nms_BlockBaseRailLogic_refreshConnectedTracks = function($this) { - var $var1, $var2, var$3, var$4, var$5, var$6, var$7; - $var1 = 0; - a: { - b: { - while ($var1 < $this.$railChunkPosition.$size0) { - $var2 = $this.$railChunkPosition; - if ($var1 < 0) - break a; - if ($var1 >= $var2.$size0) - break a; - $var2 = $java.nms_BlockBaseRailLogic_getRailLogic($this, $var2.$array1.data[$var1]); - if ($var2 !== null && $java.nms_BlockBaseRailLogic_isRailChunkPositionCorrect($var2, $this)) { - var$3 = $this.$railChunkPosition; - var$4 = new nms_ChunkPosition; - var$5 = $var2.$railX; - var$6 = $var2.$railY; - var$7 = $var2.$railZ; - var$4.$x4 = var$5; - var$4.$y3 = var$6; - var$4.$z5 = var$7; - if ($var1 < 0) - break b; - if ($var1 >= var$3.$size0) - break b; - var$3.$array1.data[$var1] = var$4; - var$5 = $var1; - } else { - $var2 = $this.$railChunkPosition; - var$5 = $var1 + (-1) | 0; - ju_ArrayList_remove($var2, $var1); - } - $var1 = var$5 + 1 | 0; - } - return; - } - $var2 = new jl_IndexOutOfBoundsException; - $var2.$suppressionEnabled = 1; - $var2.$writableStackTrace = 1; - $rt_throw($var2); - } - $var2 = new jl_IndexOutOfBoundsException; - $var2.$suppressionEnabled = 1; - $var2.$writableStackTrace = 1; - $rt_throw($var2); -}; -$java.nms_BlockBaseRailLogic_isMinecartTrack = function($this, $par1, $par2, $par3) { - return nms_BlockRailBase_isRailBlock(nms_World_getBlockId($this.$logicWorld, $par1, $par2, $par3)) ? 1 : nms_BlockRailBase_isRailBlock(nms_World_getBlockId($this.$logicWorld, $par1, $par2 + 1 | 0, $par3)) ? 1 : nms_BlockRailBase_isRailBlock(nms_World_getBlockId($this.$logicWorld, $par1, $par2 - 1 | 0, $par3)); -}; -$java.nms_BlockBaseRailLogic_getRailLogic = function($this, $par1ChunkPosition) { - return nms_BlockRailBase_isRailBlock(nms_World_getBlockId($this.$logicWorld, $par1ChunkPosition.$x4, $par1ChunkPosition.$y3, $par1ChunkPosition.$z5)) ? nms_BlockBaseRailLogic__init_($this.$theRail, $this.$logicWorld, $par1ChunkPosition.$x4, $par1ChunkPosition.$y3, $par1ChunkPosition.$z5) : nms_BlockRailBase_isRailBlock(nms_World_getBlockId($this.$logicWorld, $par1ChunkPosition.$x4, $par1ChunkPosition.$y3 + 1 | 0, $par1ChunkPosition.$z5)) ? nms_BlockBaseRailLogic__init_($this.$theRail, $this.$logicWorld, - $par1ChunkPosition.$x4, $par1ChunkPosition.$y3 + 1 | 0, $par1ChunkPosition.$z5) : !nms_BlockRailBase_isRailBlock(nms_World_getBlockId($this.$logicWorld, $par1ChunkPosition.$x4, $par1ChunkPosition.$y3 - 1 | 0, $par1ChunkPosition.$z5)) ? null : nms_BlockBaseRailLogic__init_($this.$theRail, $this.$logicWorld, $par1ChunkPosition.$x4, $par1ChunkPosition.$y3 - 1 | 0, $par1ChunkPosition.$z5); -}; -$java.nms_BlockBaseRailLogic_isRailChunkPositionCorrect = function($this, $par1BlockBaseRailLogic) { - var $var2, $var3; - $var2 = 0; - a: { - while ($var2 < $this.$railChunkPosition.$size0) { - $var3 = $this.$railChunkPosition; - if ($var2 < 0) - break a; - if ($var2 >= $var3.$size0) - break a; - $var3 = $var3.$array1.data[$var2]; - if ($var3.$x4 == $par1BlockBaseRailLogic.$railX && $var3.$z5 == $par1BlockBaseRailLogic.$railZ) - return 1; - $var2 = $var2 + 1 | 0; - } - return 0; - } - $par1BlockBaseRailLogic = new jl_IndexOutOfBoundsException; - $par1BlockBaseRailLogic.$suppressionEnabled = 1; - $par1BlockBaseRailLogic.$writableStackTrace = 1; - $rt_throw($par1BlockBaseRailLogic); -}; -$java.nms_BlockBaseRailLogic_isPartOfTrack = function($this, $par1, $par2, $par3) { - var $var4, $var5; - $var4 = 0; - a: { - while ($var4 < $this.$railChunkPosition.$size0) { - $var5 = $this.$railChunkPosition; - if ($var4 < 0) - break a; - if ($var4 >= $var5.$size0) - break a; - $var5 = $var5.$array1.data[$var4]; - if ($var5.$x4 == $par1 && $var5.$z5 == $par3) - return 1; - $var4 = $var4 + 1 | 0; - } - return 0; - } - $var5 = new jl_IndexOutOfBoundsException; - $var5.$suppressionEnabled = 1; - $var5.$writableStackTrace = 1; - $rt_throw($var5); -}; -function nms_BlockBaseRailLogic_getNumberOfAdjacentTracks($this) { - var $var1; - $var1 = 0; - if ($java.nms_BlockBaseRailLogic_isMinecartTrack($this, $this.$railX, $this.$railY, $this.$railZ - 1 | 0)) - $var1 = 1; - if ($java.nms_BlockBaseRailLogic_isMinecartTrack($this, $this.$railX, $this.$railY, $this.$railZ + 1 | 0)) - $var1 = $var1 + 1 | 0; - if ($java.nms_BlockBaseRailLogic_isMinecartTrack($this, $this.$railX - 1 | 0, $this.$railY, $this.$railZ)) - $var1 = $var1 + 1 | 0; - if ($java.nms_BlockBaseRailLogic_isMinecartTrack($this, $this.$railX + 1 | 0, $this.$railY, $this.$railZ)) - $var1 = $var1 + 1 | 0; - return $var1; -} -$java.nms_BlockBaseRailLogic_canConnectTo = function($this, $par1BlockBaseRailLogic) { - return $java.nms_BlockBaseRailLogic_isRailChunkPositionCorrect($this, $par1BlockBaseRailLogic) ? 1 : $this.$railChunkPosition.$size0 == 2 ? 0 : !($this.$railChunkPosition.$size0 ? 0 : 1) ? 1 : 1; -}; -$java.nms_BlockBaseRailLogic_connectToNeighbor = function($this, $par1BlockBaseRailLogic) { - var var$2, var$3, $var2, $var3, $var4, $var5, $var6, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();var$3 = $thread.pop();var$2 = $thread.pop();$par1BlockBaseRailLogic = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$2 = $this.$railChunkPosition; - var$3 = new nms_ChunkPosition; - $var2 = $par1BlockBaseRailLogic.$railX; - $var3 = $par1BlockBaseRailLogic.$railY; - $var4 = $par1BlockBaseRailLogic.$railZ; - var$3.$x4 = $var2; - var$3.$y3 = $var3; - var$3.$z5 = $var4; - ju_ArrayList_add(var$2, var$3); - $var2 = $java.nms_BlockBaseRailLogic_isPartOfTrack($this, $this.$railX, $this.$railY, $this.$railZ - 1 | 0); - $var3 = $java.nms_BlockBaseRailLogic_isPartOfTrack($this, $this.$railX, $this.$railY, $this.$railZ + 1 | 0); - $var4 = $java.nms_BlockBaseRailLogic_isPartOfTrack($this, $this.$railX - 1 | 0, $this.$railY, $this.$railZ); - $var5 = $java.nms_BlockBaseRailLogic_isPartOfTrack($this, $this.$railX + 1 | 0, $this.$railY, $this.$railZ); - $var6 = (-1); - if (!(!$var2 && !$var3)) - $var6 = 0; - if (!(!$var4 && !$var5)) - $var6 = 1; - if (!$this.$isStraightRail) { - if ($var3 && $var5 && !$var2 && !$var4) - $var6 = 6; - if ($var3 && $var4 && !$var2 && !$var5) - $var6 = 7; - if ($var2 && $var4 && !$var3 && !$var5) - $var6 = 8; - if ($var2 && $var5 && !$var3 && !$var4) - $var6 = 9; - } - if (!$var6) { - if (nms_BlockRailBase_isRailBlock(nms_World_getBlockId($this.$logicWorld, $this.$railX, $this.$railY + 1 | 0, $this.$railZ - 1 | 0))) - $var6 = 4; - if (nms_BlockRailBase_isRailBlock(nms_World_getBlockId($this.$logicWorld, $this.$railX, $this.$railY + 1 | 0, $this.$railZ + 1 | 0))) - $var6 = 5; - } - if ($var6 == 1) { - if (nms_BlockRailBase_isRailBlock(nms_World_getBlockId($this.$logicWorld, $this.$railX + 1 | 0, $this.$railY + 1 | 0, $this.$railZ))) - $var6 = 2; - if (nms_BlockRailBase_isRailBlock(nms_World_getBlockId($this.$logicWorld, $this.$railX - 1 | 0, $this.$railY + 1 | 0, $this.$railZ))) - $var6 = 3; - } - if ($var6 < 0) - $var6 = 0; - if ($this.$isStraightRail) - $var6 = nms_World_getBlockMetadata($this.$logicWorld, $this.$railX, $this.$railY, $this.$railZ) & 8 | $var6; - $par1BlockBaseRailLogic = $this.$logicWorld; - $var3 = $this.$railX; - $var4 = $this.$railY; - $var5 = $this.$railZ; - $var2 = 3; - $ptr = 1; - case 1: - nms_World_setBlockMetadataWithNotify($par1BlockBaseRailLogic, $var3, $var4, $var5, $var6, $var2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1BlockBaseRailLogic, var$2, var$3, $var2, $var3, $var4, $var5, $var6, $ptr); -}; -$java.nms_BlockBaseRailLogic_canConnectFrom = function($this, $par1, $par2, $par3) { - var $var4; - $var4 = new nms_ChunkPosition; - $var4.$x4 = $par1; - $var4.$y3 = $par2; - $var4.$z5 = $par3; - $var4 = $java.nms_BlockBaseRailLogic_getRailLogic($this, $var4); - if ($var4 === null) - return 0; - $java.nms_BlockBaseRailLogic_refreshConnectedTracks($var4); - return $java.nms_BlockBaseRailLogic_canConnectTo($var4, $this); -}; -function nms_BlockBaseRailLogic_func_94511_a($this, $par1, $par2) { - var $var3, $var4, $var5, $var6, $var7, $var10, $var9, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var9 = $thread.pop();$var10 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var3 = $java.nms_BlockBaseRailLogic_canConnectFrom($this, $this.$railX, $this.$railY, $this.$railZ - 1 | 0); - $var4 = $java.nms_BlockBaseRailLogic_canConnectFrom($this, $this.$railX, $this.$railY, $this.$railZ + 1 | 0); - $var5 = $java.nms_BlockBaseRailLogic_canConnectFrom($this, $this.$railX - 1 | 0, $this.$railY, $this.$railZ); - $var6 = $java.nms_BlockBaseRailLogic_canConnectFrom($this, $this.$railX + 1 | 0, $this.$railY, $this.$railZ); - $var7 = (-1); - if (!(!$var3 && !$var4) && !$var5 && !$var6) - $var7 = 0; - if (!(!$var5 && !$var6) && !$var3 && !$var4) - $var7 = 1; - if (!$this.$isStraightRail) { - if ($var4 && $var6 && !$var3 && !$var5) - $var7 = 6; - if ($var4 && $var5 && !$var3 && !$var6) - $var7 = 7; - if ($var3 && $var5 && !$var4 && !$var6) - $var7 = 8; - if ($var3 && $var6 && !$var4 && !$var5) - $var7 = 9; - } - if ($var7 == (-1)) { - if (!(!$var3 && !$var4)) - $var7 = 0; - if (!(!$var5 && !$var6)) - $var7 = 1; - if (!$this.$isStraightRail) { - if (!$par1) { - if ($var3 && $var5) - $var7 = 8; - if ($var6 && $var3) - $var7 = 9; - if ($var5 && $var4) - $var7 = 7; - if ($var4 && $var6) - $var7 = 6; - } else { - if ($var4 && $var6) - $var7 = 6; - if ($var5 && $var4) - $var7 = 7; - if ($var6 && $var3) - $var7 = 9; - if ($var3 && $var5) - $var7 = 8; - } - } - } - if (!$var7) { - if (nms_BlockRailBase_isRailBlockAt($this.$logicWorld, $this.$railX, $this.$railY + 1 | 0, $this.$railZ - 1 | 0)) - $var7 = 4; - if (nms_BlockRailBase_isRailBlockAt($this.$logicWorld, $this.$railX, $this.$railY + 1 | 0, $this.$railZ + 1 | 0)) - $var7 = 5; - } - if ($var7 == 1) { - if (nms_BlockRailBase_isRailBlockAt($this.$logicWorld, $this.$railX + 1 | 0, $this.$railY + 1 | 0, $this.$railZ)) - $var7 = 2; - if (nms_BlockRailBase_isRailBlockAt($this.$logicWorld, $this.$railX - 1 | 0, $this.$railY + 1 | 0, $this.$railZ)) - $var7 = 3; - } - if ($var7 < 0) - $var7 = 0; - $java.nms_BlockBaseRailLogic_setBasicRail($this, $var7); - if ($this.$isStraightRail) - $var7 = nms_World_getBlockMetadata($this.$logicWorld, $this.$railX, $this.$railY, $this.$railZ) & 8 | $var7; - if (!$par2 && nms_World_getBlockMetadata($this.$logicWorld, $this.$railX, $this.$railY, $this.$railZ) == $var7) - return; - $var10 = $this.$logicWorld; - $par2 = $this.$railX; - $var9 = $this.$railY; - $var3 = $this.$railZ; - $par1 = 3; - $ptr = 1; - case 1: - nms_World_setBlockMetadataWithNotify($var10, $par2, $var9, $var3, $var7, $par1); - if ($rt_suspending()) { - break main; - } - $var9 = 0; - while ($var9 < ju_ArrayList_size($this.$railChunkPosition)) { - $var10 = $java.nms_BlockBaseRailLogic_getRailLogic($this, ju_ArrayList_get($this.$railChunkPosition, $var9)); - if ($var10 !== null) { - $java.nms_BlockBaseRailLogic_refreshConnectedTracks($var10); - if ($java.nms_BlockBaseRailLogic_canConnectTo($var10, $this)) { - $ptr = 2; - continue main; - } - } - $var9 = $var9 + 1 | 0; - } - return; - case 2: - $java.nms_BlockBaseRailLogic_connectToNeighbor($var10, $this); - if ($rt_suspending()) { - break main; - } - while (true) { - $var9 = $var9 + 1 | 0; - if ($var9 >= ju_ArrayList_size($this.$railChunkPosition)) - break; - $var10 = $java.nms_BlockBaseRailLogic_getRailLogic($this, ju_ArrayList_get($this.$railChunkPosition, $var9)); - if ($var10 === null) - continue; - $java.nms_BlockBaseRailLogic_refreshConnectedTracks($var10); - if (!$java.nms_BlockBaseRailLogic_canConnectTo($var10, $this)) - continue; - else { - continue main; - } - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $var3, $var4, $var5, $var6, $var7, $var10, $var9, $ptr); -} function nms_InventoryLargeChest() { var a = this; jl_Object.call(a); a.$name10 = null; @@ -221477,6 +220964,519 @@ $java.nms_GuiCommandBlock_drawScreen = function($this, $par1, $par2, $par3) { var$6.$writableStackTrace = 1; $rt_throw(var$6); }; +function nms_BlockBaseRailLogic() { + var a = this; jl_Object.call(a); + a.$logicWorld = null; + a.$railX = 0; + a.$railY = 0; + a.$railZ = 0; + a.$isStraightRail = 0; + a.$railChunkPosition = null; + a.$theRail = null; +} +function nms_BlockBaseRailLogic__init_(var_0, var_1, var_2, var_3, var_4) { + var var_5 = new nms_BlockBaseRailLogic(); + $java.nms_BlockBaseRailLogic__init_(var_5, var_0, var_1, var_2, var_3, var_4); + return var_5; +} +$java.nms_BlockBaseRailLogic__init_ = function($this, $par1, $par2, $par3, $par4, $par5) { + var $var6, $var7; + $this.$theRail = $par1; + $par1 = new ju_ArrayList; + $par1.$array1 = $rt_createArray(jl_Object, 10); + $this.$railChunkPosition = $par1; + $this.$logicWorld = $par2; + $this.$railX = $par3; + $this.$railY = $par4; + $this.$railZ = $par5; + $var6 = nms_World_getBlockId($par2, $par3, $par4, $par5); + $var7 = nms_World_getBlockMetadata($par2, $par3, $par4, $par5); + nms_Block_$callClinit(); + if (!nms_Block_blocksList.data[$var6].$isPowered) + $this.$isStraightRail = 0; + else { + $this.$isStraightRail = 1; + $var7 = $var7 & (-9); + } + $java.nms_BlockBaseRailLogic_setBasicRail($this, $var7); +}; +$java.nms_BlockBaseRailLogic_setBasicRail = function($this, $par1) { + var var$2, var$3, var$4, var$5; + a: { + var$2 = $this.$railChunkPosition; + ju_Arrays_fill(var$2.$array1, 0, var$2.$size0, null); + var$2.$size0 = 0; + if (!$par1) { + var$2 = $this.$railChunkPosition; + var$3 = new nms_ChunkPosition; + $par1 = $this.$railX; + var$4 = $this.$railY; + var$5 = $this.$railZ - 1 | 0; + var$3.$x4 = $par1; + var$3.$y3 = var$4; + var$3.$z5 = var$5; + ju_ArrayList_add(var$2, var$3); + var$2 = $this.$railChunkPosition; + var$3 = new nms_ChunkPosition; + $par1 = $this.$railX; + var$4 = $this.$railY; + var$5 = $this.$railZ + 1 | 0; + var$3.$x4 = $par1; + var$3.$y3 = var$4; + var$3.$z5 = var$5; + ju_ArrayList_add(var$2, var$3); + break a; + } + if ($par1 == 1) { + var$2 = $this.$railChunkPosition; + var$3 = new nms_ChunkPosition; + $par1 = $this.$railX - 1 | 0; + var$4 = $this.$railY; + var$5 = $this.$railZ; + var$3.$x4 = $par1; + var$3.$y3 = var$4; + var$3.$z5 = var$5; + ju_ArrayList_add(var$2, var$3); + var$2 = $this.$railChunkPosition; + var$3 = new nms_ChunkPosition; + $par1 = $this.$railX + 1 | 0; + var$4 = $this.$railY; + var$5 = $this.$railZ; + var$3.$x4 = $par1; + var$3.$y3 = var$4; + var$3.$z5 = var$5; + ju_ArrayList_add(var$2, var$3); + break a; + } + if ($par1 == 2) { + var$2 = $this.$railChunkPosition; + var$3 = new nms_ChunkPosition; + $par1 = $this.$railX - 1 | 0; + var$4 = $this.$railY; + var$5 = $this.$railZ; + var$3.$x4 = $par1; + var$3.$y3 = var$4; + var$3.$z5 = var$5; + ju_ArrayList_add(var$2, var$3); + var$2 = $this.$railChunkPosition; + var$3 = new nms_ChunkPosition; + var$5 = $this.$railX + 1 | 0; + $par1 = $this.$railY + 1 | 0; + var$4 = $this.$railZ; + var$3.$x4 = var$5; + var$3.$y3 = $par1; + var$3.$z5 = var$4; + ju_ArrayList_add(var$2, var$3); + break a; + } + if ($par1 == 3) { + var$2 = $this.$railChunkPosition; + var$3 = new nms_ChunkPosition; + $par1 = $this.$railX - 1 | 0; + var$4 = $this.$railY + 1 | 0; + var$5 = $this.$railZ; + var$3.$x4 = $par1; + var$3.$y3 = var$4; + var$3.$z5 = var$5; + ju_ArrayList_add(var$2, var$3); + var$2 = $this.$railChunkPosition; + var$3 = new nms_ChunkPosition; + $par1 = $this.$railX + 1 | 0; + var$4 = $this.$railY; + var$5 = $this.$railZ; + var$3.$x4 = $par1; + var$3.$y3 = var$4; + var$3.$z5 = var$5; + ju_ArrayList_add(var$2, var$3); + break a; + } + if ($par1 == 4) { + var$2 = $this.$railChunkPosition; + var$3 = new nms_ChunkPosition; + $par1 = $this.$railX; + var$4 = $this.$railY + 1 | 0; + var$5 = $this.$railZ - 1 | 0; + var$3.$x4 = $par1; + var$3.$y3 = var$4; + var$3.$z5 = var$5; + ju_ArrayList_add(var$2, var$3); + var$2 = $this.$railChunkPosition; + var$3 = new nms_ChunkPosition; + $par1 = $this.$railX; + var$4 = $this.$railY; + var$5 = $this.$railZ + 1 | 0; + var$3.$x4 = $par1; + var$3.$y3 = var$4; + var$3.$z5 = var$5; + ju_ArrayList_add(var$2, var$3); + break a; + } + if ($par1 == 5) { + var$2 = $this.$railChunkPosition; + var$3 = new nms_ChunkPosition; + $par1 = $this.$railX; + var$4 = $this.$railY; + var$5 = $this.$railZ - 1 | 0; + var$3.$x4 = $par1; + var$3.$y3 = var$4; + var$3.$z5 = var$5; + ju_ArrayList_add(var$2, var$3); + var$2 = $this.$railChunkPosition; + var$3 = new nms_ChunkPosition; + $par1 = $this.$railX; + var$4 = $this.$railY + 1 | 0; + var$5 = $this.$railZ + 1 | 0; + var$3.$x4 = $par1; + var$3.$y3 = var$4; + var$3.$z5 = var$5; + ju_ArrayList_add(var$2, var$3); + break a; + } + if ($par1 == 6) { + var$2 = $this.$railChunkPosition; + var$3 = new nms_ChunkPosition; + $par1 = $this.$railX + 1 | 0; + var$4 = $this.$railY; + var$5 = $this.$railZ; + var$3.$x4 = $par1; + var$3.$y3 = var$4; + var$3.$z5 = var$5; + ju_ArrayList_add(var$2, var$3); + ju_ArrayList_add($this.$railChunkPosition, $java.nms_ChunkPosition__init_($this.$railX, $this.$railY, $this.$railZ + 1 | 0)); + break a; + } + if ($par1 == 7) { + ju_ArrayList_add($this.$railChunkPosition, $java.nms_ChunkPosition__init_($this.$railX - 1 | 0, $this.$railY, $this.$railZ)); + ju_ArrayList_add($this.$railChunkPosition, $java.nms_ChunkPosition__init_($this.$railX, $this.$railY, $this.$railZ + 1 | 0)); + break a; + } + if ($par1 == 8) { + ju_ArrayList_add($this.$railChunkPosition, $java.nms_ChunkPosition__init_($this.$railX - 1 | 0, $this.$railY, $this.$railZ)); + ju_ArrayList_add($this.$railChunkPosition, $java.nms_ChunkPosition__init_($this.$railX, $this.$railY, $this.$railZ - 1 | 0)); + break a; + } + if ($par1 != 9) + break a; + ju_ArrayList_add($this.$railChunkPosition, $java.nms_ChunkPosition__init_($this.$railX + 1 | 0, $this.$railY, $this.$railZ)); + ju_ArrayList_add($this.$railChunkPosition, $java.nms_ChunkPosition__init_($this.$railX, $this.$railY, $this.$railZ - 1 | 0)); + } +}; +$java.nms_BlockBaseRailLogic_refreshConnectedTracks = function($this) { + var $var1, $var2, var$3, var$4, var$5, var$6, var$7; + $var1 = 0; + a: { + b: { + while ($var1 < $this.$railChunkPosition.$size0) { + $var2 = $this.$railChunkPosition; + if ($var1 < 0) + break a; + if ($var1 >= $var2.$size0) + break a; + $var2 = $java.nms_BlockBaseRailLogic_getRailLogic($this, $var2.$array1.data[$var1]); + if ($var2 !== null && $java.nms_BlockBaseRailLogic_isRailChunkPositionCorrect($var2, $this)) { + var$3 = $this.$railChunkPosition; + var$4 = new nms_ChunkPosition; + var$5 = $var2.$railX; + var$6 = $var2.$railY; + var$7 = $var2.$railZ; + var$4.$x4 = var$5; + var$4.$y3 = var$6; + var$4.$z5 = var$7; + if ($var1 < 0) + break b; + if ($var1 >= var$3.$size0) + break b; + var$3.$array1.data[$var1] = var$4; + var$5 = $var1; + } else { + $var2 = $this.$railChunkPosition; + var$5 = $var1 + (-1) | 0; + ju_ArrayList_remove($var2, $var1); + } + $var1 = var$5 + 1 | 0; + } + return; + } + $var2 = new jl_IndexOutOfBoundsException; + $var2.$suppressionEnabled = 1; + $var2.$writableStackTrace = 1; + $rt_throw($var2); + } + $var2 = new jl_IndexOutOfBoundsException; + $var2.$suppressionEnabled = 1; + $var2.$writableStackTrace = 1; + $rt_throw($var2); +}; +$java.nms_BlockBaseRailLogic_isMinecartTrack = function($this, $par1, $par2, $par3) { + return nms_BlockRailBase_isRailBlock(nms_World_getBlockId($this.$logicWorld, $par1, $par2, $par3)) ? 1 : nms_BlockRailBase_isRailBlock(nms_World_getBlockId($this.$logicWorld, $par1, $par2 + 1 | 0, $par3)) ? 1 : nms_BlockRailBase_isRailBlock(nms_World_getBlockId($this.$logicWorld, $par1, $par2 - 1 | 0, $par3)); +}; +$java.nms_BlockBaseRailLogic_getRailLogic = function($this, $par1ChunkPosition) { + return nms_BlockRailBase_isRailBlock(nms_World_getBlockId($this.$logicWorld, $par1ChunkPosition.$x4, $par1ChunkPosition.$y3, $par1ChunkPosition.$z5)) ? nms_BlockBaseRailLogic__init_($this.$theRail, $this.$logicWorld, $par1ChunkPosition.$x4, $par1ChunkPosition.$y3, $par1ChunkPosition.$z5) : nms_BlockRailBase_isRailBlock(nms_World_getBlockId($this.$logicWorld, $par1ChunkPosition.$x4, $par1ChunkPosition.$y3 + 1 | 0, $par1ChunkPosition.$z5)) ? nms_BlockBaseRailLogic__init_($this.$theRail, $this.$logicWorld, + $par1ChunkPosition.$x4, $par1ChunkPosition.$y3 + 1 | 0, $par1ChunkPosition.$z5) : !nms_BlockRailBase_isRailBlock(nms_World_getBlockId($this.$logicWorld, $par1ChunkPosition.$x4, $par1ChunkPosition.$y3 - 1 | 0, $par1ChunkPosition.$z5)) ? null : nms_BlockBaseRailLogic__init_($this.$theRail, $this.$logicWorld, $par1ChunkPosition.$x4, $par1ChunkPosition.$y3 - 1 | 0, $par1ChunkPosition.$z5); +}; +$java.nms_BlockBaseRailLogic_isRailChunkPositionCorrect = function($this, $par1BlockBaseRailLogic) { + var $var2, $var3; + $var2 = 0; + a: { + while ($var2 < $this.$railChunkPosition.$size0) { + $var3 = $this.$railChunkPosition; + if ($var2 < 0) + break a; + if ($var2 >= $var3.$size0) + break a; + $var3 = $var3.$array1.data[$var2]; + if ($var3.$x4 == $par1BlockBaseRailLogic.$railX && $var3.$z5 == $par1BlockBaseRailLogic.$railZ) + return 1; + $var2 = $var2 + 1 | 0; + } + return 0; + } + $par1BlockBaseRailLogic = new jl_IndexOutOfBoundsException; + $par1BlockBaseRailLogic.$suppressionEnabled = 1; + $par1BlockBaseRailLogic.$writableStackTrace = 1; + $rt_throw($par1BlockBaseRailLogic); +}; +$java.nms_BlockBaseRailLogic_isPartOfTrack = function($this, $par1, $par2, $par3) { + var $var4, $var5; + $var4 = 0; + a: { + while ($var4 < $this.$railChunkPosition.$size0) { + $var5 = $this.$railChunkPosition; + if ($var4 < 0) + break a; + if ($var4 >= $var5.$size0) + break a; + $var5 = $var5.$array1.data[$var4]; + if ($var5.$x4 == $par1 && $var5.$z5 == $par3) + return 1; + $var4 = $var4 + 1 | 0; + } + return 0; + } + $var5 = new jl_IndexOutOfBoundsException; + $var5.$suppressionEnabled = 1; + $var5.$writableStackTrace = 1; + $rt_throw($var5); +}; +function nms_BlockBaseRailLogic_getNumberOfAdjacentTracks($this) { + var $var1; + $var1 = 0; + if ($java.nms_BlockBaseRailLogic_isMinecartTrack($this, $this.$railX, $this.$railY, $this.$railZ - 1 | 0)) + $var1 = 1; + if ($java.nms_BlockBaseRailLogic_isMinecartTrack($this, $this.$railX, $this.$railY, $this.$railZ + 1 | 0)) + $var1 = $var1 + 1 | 0; + if ($java.nms_BlockBaseRailLogic_isMinecartTrack($this, $this.$railX - 1 | 0, $this.$railY, $this.$railZ)) + $var1 = $var1 + 1 | 0; + if ($java.nms_BlockBaseRailLogic_isMinecartTrack($this, $this.$railX + 1 | 0, $this.$railY, $this.$railZ)) + $var1 = $var1 + 1 | 0; + return $var1; +} +$java.nms_BlockBaseRailLogic_canConnectTo = function($this, $par1BlockBaseRailLogic) { + return $java.nms_BlockBaseRailLogic_isRailChunkPositionCorrect($this, $par1BlockBaseRailLogic) ? 1 : $this.$railChunkPosition.$size0 == 2 ? 0 : !($this.$railChunkPosition.$size0 ? 0 : 1) ? 1 : 1; +}; +$java.nms_BlockBaseRailLogic_connectToNeighbor = function($this, $par1BlockBaseRailLogic) { + var var$2, var$3, $var2, $var3, $var4, $var5, $var6, $ptr, $tmp; + $ptr = 0; + if ($rt_resuming()) { + var $thread = $rt_nativeThread(); + $ptr = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();var$3 = $thread.pop();var$2 = $thread.pop();$par1BlockBaseRailLogic = $thread.pop();$this = $thread.pop(); + } + main: while (true) { switch ($ptr) { + case 0: + var$2 = $this.$railChunkPosition; + var$3 = new nms_ChunkPosition; + $var2 = $par1BlockBaseRailLogic.$railX; + $var3 = $par1BlockBaseRailLogic.$railY; + $var4 = $par1BlockBaseRailLogic.$railZ; + var$3.$x4 = $var2; + var$3.$y3 = $var3; + var$3.$z5 = $var4; + ju_ArrayList_add(var$2, var$3); + $var2 = $java.nms_BlockBaseRailLogic_isPartOfTrack($this, $this.$railX, $this.$railY, $this.$railZ - 1 | 0); + $var3 = $java.nms_BlockBaseRailLogic_isPartOfTrack($this, $this.$railX, $this.$railY, $this.$railZ + 1 | 0); + $var4 = $java.nms_BlockBaseRailLogic_isPartOfTrack($this, $this.$railX - 1 | 0, $this.$railY, $this.$railZ); + $var5 = $java.nms_BlockBaseRailLogic_isPartOfTrack($this, $this.$railX + 1 | 0, $this.$railY, $this.$railZ); + $var6 = (-1); + if (!(!$var2 && !$var3)) + $var6 = 0; + if (!(!$var4 && !$var5)) + $var6 = 1; + if (!$this.$isStraightRail) { + if ($var3 && $var5 && !$var2 && !$var4) + $var6 = 6; + if ($var3 && $var4 && !$var2 && !$var5) + $var6 = 7; + if ($var2 && $var4 && !$var3 && !$var5) + $var6 = 8; + if ($var2 && $var5 && !$var3 && !$var4) + $var6 = 9; + } + if (!$var6) { + if (nms_BlockRailBase_isRailBlock(nms_World_getBlockId($this.$logicWorld, $this.$railX, $this.$railY + 1 | 0, $this.$railZ - 1 | 0))) + $var6 = 4; + if (nms_BlockRailBase_isRailBlock(nms_World_getBlockId($this.$logicWorld, $this.$railX, $this.$railY + 1 | 0, $this.$railZ + 1 | 0))) + $var6 = 5; + } + if ($var6 == 1) { + if (nms_BlockRailBase_isRailBlock(nms_World_getBlockId($this.$logicWorld, $this.$railX + 1 | 0, $this.$railY + 1 | 0, $this.$railZ))) + $var6 = 2; + if (nms_BlockRailBase_isRailBlock(nms_World_getBlockId($this.$logicWorld, $this.$railX - 1 | 0, $this.$railY + 1 | 0, $this.$railZ))) + $var6 = 3; + } + if ($var6 < 0) + $var6 = 0; + if ($this.$isStraightRail) + $var6 = nms_World_getBlockMetadata($this.$logicWorld, $this.$railX, $this.$railY, $this.$railZ) & 8 | $var6; + $par1BlockBaseRailLogic = $this.$logicWorld; + $var3 = $this.$railX; + $var4 = $this.$railY; + $var5 = $this.$railZ; + $var2 = 3; + $ptr = 1; + case 1: + nms_World_setBlockMetadataWithNotify($par1BlockBaseRailLogic, $var3, $var4, $var5, $var6, $var2); + if ($rt_suspending()) { + break main; + } + return; + default: $rt_invalidPointer(); + }} + $rt_nativeThread().push($this, $par1BlockBaseRailLogic, var$2, var$3, $var2, $var3, $var4, $var5, $var6, $ptr); +}; +$java.nms_BlockBaseRailLogic_canConnectFrom = function($this, $par1, $par2, $par3) { + var $var4; + $var4 = new nms_ChunkPosition; + $var4.$x4 = $par1; + $var4.$y3 = $par2; + $var4.$z5 = $par3; + $var4 = $java.nms_BlockBaseRailLogic_getRailLogic($this, $var4); + if ($var4 === null) + return 0; + $java.nms_BlockBaseRailLogic_refreshConnectedTracks($var4); + return $java.nms_BlockBaseRailLogic_canConnectTo($var4, $this); +}; +function nms_BlockBaseRailLogic_func_94511_a($this, $par1, $par2) { + var $var3, $var4, $var5, $var6, $var7, $var10, $var9, $ptr, $tmp; + $ptr = 0; + if ($rt_resuming()) { + var $thread = $rt_nativeThread(); + $ptr = $thread.pop();$var9 = $thread.pop();$var10 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); + } + main: while (true) { switch ($ptr) { + case 0: + $var3 = $java.nms_BlockBaseRailLogic_canConnectFrom($this, $this.$railX, $this.$railY, $this.$railZ - 1 | 0); + $var4 = $java.nms_BlockBaseRailLogic_canConnectFrom($this, $this.$railX, $this.$railY, $this.$railZ + 1 | 0); + $var5 = $java.nms_BlockBaseRailLogic_canConnectFrom($this, $this.$railX - 1 | 0, $this.$railY, $this.$railZ); + $var6 = $java.nms_BlockBaseRailLogic_canConnectFrom($this, $this.$railX + 1 | 0, $this.$railY, $this.$railZ); + $var7 = (-1); + if (!(!$var3 && !$var4) && !$var5 && !$var6) + $var7 = 0; + if (!(!$var5 && !$var6) && !$var3 && !$var4) + $var7 = 1; + if (!$this.$isStraightRail) { + if ($var4 && $var6 && !$var3 && !$var5) + $var7 = 6; + if ($var4 && $var5 && !$var3 && !$var6) + $var7 = 7; + if ($var3 && $var5 && !$var4 && !$var6) + $var7 = 8; + if ($var3 && $var6 && !$var4 && !$var5) + $var7 = 9; + } + if ($var7 == (-1)) { + if (!(!$var3 && !$var4)) + $var7 = 0; + if (!(!$var5 && !$var6)) + $var7 = 1; + if (!$this.$isStraightRail) { + if (!$par1) { + if ($var3 && $var5) + $var7 = 8; + if ($var6 && $var3) + $var7 = 9; + if ($var5 && $var4) + $var7 = 7; + if ($var4 && $var6) + $var7 = 6; + } else { + if ($var4 && $var6) + $var7 = 6; + if ($var5 && $var4) + $var7 = 7; + if ($var6 && $var3) + $var7 = 9; + if ($var3 && $var5) + $var7 = 8; + } + } + } + if (!$var7) { + if (nms_BlockRailBase_isRailBlockAt($this.$logicWorld, $this.$railX, $this.$railY + 1 | 0, $this.$railZ - 1 | 0)) + $var7 = 4; + if (nms_BlockRailBase_isRailBlockAt($this.$logicWorld, $this.$railX, $this.$railY + 1 | 0, $this.$railZ + 1 | 0)) + $var7 = 5; + } + if ($var7 == 1) { + if (nms_BlockRailBase_isRailBlockAt($this.$logicWorld, $this.$railX + 1 | 0, $this.$railY + 1 | 0, $this.$railZ)) + $var7 = 2; + if (nms_BlockRailBase_isRailBlockAt($this.$logicWorld, $this.$railX - 1 | 0, $this.$railY + 1 | 0, $this.$railZ)) + $var7 = 3; + } + if ($var7 < 0) + $var7 = 0; + $java.nms_BlockBaseRailLogic_setBasicRail($this, $var7); + if ($this.$isStraightRail) + $var7 = nms_World_getBlockMetadata($this.$logicWorld, $this.$railX, $this.$railY, $this.$railZ) & 8 | $var7; + if (!$par2 && nms_World_getBlockMetadata($this.$logicWorld, $this.$railX, $this.$railY, $this.$railZ) == $var7) + return; + $var10 = $this.$logicWorld; + $par2 = $this.$railX; + $var9 = $this.$railY; + $var3 = $this.$railZ; + $par1 = 3; + $ptr = 1; + case 1: + nms_World_setBlockMetadataWithNotify($var10, $par2, $var9, $var3, $var7, $par1); + if ($rt_suspending()) { + break main; + } + $var9 = 0; + while ($var9 < ju_ArrayList_size($this.$railChunkPosition)) { + $var10 = $java.nms_BlockBaseRailLogic_getRailLogic($this, ju_ArrayList_get($this.$railChunkPosition, $var9)); + if ($var10 !== null) { + $java.nms_BlockBaseRailLogic_refreshConnectedTracks($var10); + if ($java.nms_BlockBaseRailLogic_canConnectTo($var10, $this)) { + $ptr = 2; + continue main; + } + } + $var9 = $var9 + 1 | 0; + } + return; + case 2: + $java.nms_BlockBaseRailLogic_connectToNeighbor($var10, $this); + if ($rt_suspending()) { + break main; + } + while (true) { + $var9 = $var9 + 1 | 0; + if ($var9 >= ju_ArrayList_size($this.$railChunkPosition)) + break; + $var10 = $java.nms_BlockBaseRailLogic_getRailLogic($this, ju_ArrayList_get($this.$railChunkPosition, $var9)); + if ($var10 === null) + continue; + $java.nms_BlockBaseRailLogic_refreshConnectedTracks($var10); + if (!$java.nms_BlockBaseRailLogic_canConnectTo($var10, $this)) + continue; + else { + continue main; + } + } + return; + default: $rt_invalidPointer(); + }} + $rt_nativeThread().push($this, $par1, $par2, $var3, $var4, $var5, $var6, $var7, $var10, $var9, $ptr); +} function nms_EntityHugeExplodeFX() { var a = this; nms_EntityFX.call(a); a.$timeSinceStart = 0; @@ -225635,40 +225635,6 @@ $java.nms_EnchantmentNameParts__clinit_ = function() { var$1.$wordList = jur_Pattern_split(jur_Pattern_compile($rt_s(320), 0), $rt_s(2979), 0); $java.nms_EnchantmentNameParts_instance = var$1; }; -function nms_GuiButtonMerchant() { - nms_GuiButton.call(this); - this.$mirrored = 0; -} -$java.nms_GuiButtonMerchant_tex = null; -$java.nms_GuiButtonMerchant_drawButton = function($this, $par1Minecraft, $par2, $par3) { - var $var4, $var5, $var6; - if ($this.$drawButton0) { - nle_TextureLocation_bindTexture($java.nms_GuiButtonMerchant_tex); - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - $var4 = $par2 >= $this.$xPosition3 && $par3 >= $this.$yPosition && $par2 < ($this.$xPosition3 + $this.$width3 | 0) && $par3 < ($this.$yPosition + $this.$height4 | 0) ? 1 : 0; - $var5 = 0; - $var6 = 176; - if (!$this.$enabled) - $var6 = $var6 + ($this.$width3 * 2 | 0) | 0; - else if ($var4) - $var6 = $var6 + $this.$width3 | 0; - if (!$this.$mirrored) - $var5 = $var5 + $this.$height4 | 0; - nms_Gui_drawTexturedModalRect($this, $this.$xPosition3, $this.$yPosition, $var6, $var5, $this.$width3, $this.$height4); - } -}; -function nms_GuiButtonMerchant__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(2875); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_GuiButtonMerchant_tex = var$1; -} function nms_GuiBeaconButton() { var a = this; nms_GuiButton.call(a); a.$buttonTexture = null; @@ -225741,6 +225707,40 @@ $java.nms_GuiBeaconButtonCancel_func_82251_b = function($this, $par1, $par2) { var$4.$array3 = var$5; nms_GuiContainer_func_102021_a(var$3, var$4, $par1, $par2); }; +function nms_GuiButtonMerchant() { + nms_GuiButton.call(this); + this.$mirrored = 0; +} +$java.nms_GuiButtonMerchant_tex = null; +$java.nms_GuiButtonMerchant_drawButton = function($this, $par1Minecraft, $par2, $par3) { + var $var4, $var5, $var6; + if ($this.$drawButton0) { + nle_TextureLocation_bindTexture($java.nms_GuiButtonMerchant_tex); + nleg_EaglerAdapterGL30_$callClinit(); + nleg_EaglerAdapterGL30_colorR = 1.0; + nleg_EaglerAdapterGL30_colorG = 1.0; + nleg_EaglerAdapterGL30_colorB = 1.0; + nleg_EaglerAdapterGL30_colorA = 1.0; + $var4 = $par2 >= $this.$xPosition3 && $par3 >= $this.$yPosition && $par2 < ($this.$xPosition3 + $this.$width3 | 0) && $par3 < ($this.$yPosition + $this.$height4 | 0) ? 1 : 0; + $var5 = 0; + $var6 = 176; + if (!$this.$enabled) + $var6 = $var6 + ($this.$width3 * 2 | 0) | 0; + else if ($var4) + $var6 = $var6 + $this.$width3 | 0; + if (!$this.$mirrored) + $var5 = $var5 + $this.$height4 | 0; + nms_Gui_drawTexturedModalRect($this, $this.$xPosition3, $this.$yPosition, $var6, $var5, $this.$width3, $this.$height4); + } +}; +function nms_GuiButtonMerchant__clinit_() { + var var$1; + var$1 = new nle_TextureLocation; + var$1.$path = $rt_s(2862); + var$1.$glObject = (-1); + ju_ArrayList_add(nle_TextureLocation_locations, var$1); + $java.nms_GuiButtonMerchant_tex = var$1; +} $java.nms_GuiBeaconButtonPower = function() { var a = this; nms_GuiBeaconButton.call(a); a.$field_82261_l = 0; @@ -229485,9 +229485,9 @@ ju_Hashtable$Entry, 0, ju_MapEntry, [], 0, 0, 0, 0, jn_IntBufferOverByteBuffer, 0, jn_IntBufferImpl, [], 1, 0, 0, ["$readOnly2", function() { return jn_IntBufferOverByteBuffer_readOnly(this); }], jn_IntBufferOverByteBufferLittleEndian, 0, jn_IntBufferOverByteBuffer, [], 0, 0, 0, ["$getElement", function(var_1) { return jn_IntBufferOverByteBufferLittleEndian_getElement(this, var_1); }, "$putElement", function(var_1, var_2) { jn_IntBufferOverByteBufferLittleEndian_putElement(this, var_1, var_2); }], jn_IntBufferOverByteBufferBigEndian, 0, jn_IntBufferOverByteBuffer, [], 0, 0, 0, ["$getElement", function(var_1) { return jn_IntBufferOverByteBufferBigEndian_getElement(this, var_1); }, "$putElement", function(var_1, var_2) { jn_IntBufferOverByteBufferBigEndian_putElement(this, var_1, var_2); }], -cbpc_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, +cbpc_IDAT, "IDAT", 3, cbpc_Chunk, [], 0, 3, 0, 0, +cbpc_IEND, 0, cbpc_Chunk, [], 0, 3, 0, 0, jl_Double, "Double", 15, jl_Number, [jl_Comparable], 0, 3, 0, ["$intValue", function() { return jl_Double_intValue(this); }, "$toString", function() { return jl_Double_toString(this); }, "$hashCode0", function() { return jl_Double_hashCode(this); }], nms_OpenGlHelper, 0, jl_Object, [], 0, 3, 0, 0, nms_TextureManager, 0, jl_Object, [], 0, 3, 0, 0, @@ -230605,14 +230605,12 @@ nms_TextureClock, "TextureClock", 28, nms_TextureStitched, [], 0, 3, 0, ["$updat nms_TextureCompass, "TextureCompass", 28, nms_TextureStitched, [], 0, 3, 0, ["$updateAnimation", function() { nms_TextureCompass_updateAnimation(this); }], $java.otjb_TimerHandler, 0, jl_Object, [otj_JSObject], 3, 3, 0, 0, nlea_EaglerAdapterImpl2$12, 0, jl_Object, [$java.otjb_TimerHandler], 4, 0, 0, ["$onTimer$exported$0", function() { return $java.nlea_EaglerAdapterImpl2$12_onTimer$exported$0(this); }], -$java.nms_SlotCreativeInventory, "SlotCreativeInventory", 28, $java.nms_Slot, [], 0, 3, 0, ["$onPickupFromSlot", function(var_1, var_2) { $java.nms_SlotCreativeInventory_onPickupFromSlot(this, var_1, var_2); }, "$isItemValid", function(var_1) { return $java.nms_SlotCreativeInventory_isItemValid(this, var_1); }, "$getStack", function() { return $java.nms_SlotCreativeInventory_getStack(this); }, "$getHasStack", function() { return $java.nms_SlotCreativeInventory_getHasStack(this); }, "$putStack", function(var_1) -{ $java.nms_SlotCreativeInventory_putStack(this, var_1); }, "$onSlotChanged", function() { $java.nms_SlotCreativeInventory_onSlotChanged(this); }, "$getSlotStackLimit", function() { return $java.nms_SlotCreativeInventory_getSlotStackLimit(this); }, "$getBackgroundIconIndex", function() { return $java.nms_SlotCreativeInventory_getBackgroundIconIndex(this); }, "$decrStackSize0", function(var_1) { return $java.nms_SlotCreativeInventory_decrStackSize(this, var_1); }], nms_Enchantment, "Enchantment", 28, jl_Object, [], 1, 3, nms_Enchantment_$callClinit, ["$calcModifierDamage", function(var_1, var_2) { return $java.nms_Enchantment_calcModifierDamage(this, var_1, var_2); }, "$calcModifierLiving", function(var_1, var_2) { return $java.nms_Enchantment_calcModifierLiving(this, var_1, var_2); }, "$canApplyTogether", function(var_1) { return $java.nms_Enchantment_canApplyTogether(this, var_1); }, "$getName", function() { return $java.nms_Enchantment_getName(this); }, "$canApply", function(var_1) { return $java.nms_Enchantment_canApply(this, var_1); }], nlea_EaglerAdapterImpl2$RenderbufferGL, 0, jl_Object, [], 4, 3, 0, 0, -nms_ChunkPosition, "ChunkPosition", 28, jl_Object, [], 0, 3, 0, ["$equals", function(var_1) { return $java.nms_ChunkPosition_equals(this, var_1); }, "$hashCode0", function() { return $java.nms_ChunkPosition_hashCode(this); }]]); -$rt_metadata([$java.otjc_JSArray, 0, jl_Object, [otjc_JSArrayReader], 1, 3, 0, ["$get$exported$0", function(var_1) { return $java.otjc_JSArray_get$exported$0(this, var_1); }, "$getLength$exported$1", function() { return $java.otjc_JSArray_getLength$exported$1(this); }], -$java.otjc_JSNumber, 0, jl_Object, [otj_JSObject], 1, 3, 0, 0, +nms_ChunkPosition, "ChunkPosition", 28, jl_Object, [], 0, 3, 0, ["$equals", function(var_1) { return $java.nms_ChunkPosition_equals(this, var_1); }, "$hashCode0", function() { return $java.nms_ChunkPosition_hashCode(this); }], +$java.otjc_JSArray, 0, jl_Object, [otjc_JSArrayReader], 1, 3, 0, ["$get$exported$0", function(var_1) { return $java.otjc_JSArray_get$exported$0(this, var_1); }, "$getLength$exported$1", function() { return $java.otjc_JSArray_getLength$exported$1(this); }]]); +$rt_metadata([$java.otjc_JSNumber, 0, jl_Object, [otj_JSObject], 1, 3, 0, 0, nms_ScoreComparator, 0, jl_Object, [ju_Comparator], 4, 0, 0, ["$compare", function(var_1, var_2) { return $java.nms_ScoreComparator_compare(this, var_1, var_2); }], ju_TimeZone, 0, jl_Object, [ji_Serializable, jl_Cloneable], 1, 3, 0, 0, nms_Packet0KeepAlive, 0, nms_Packet, [], 0, 3, 0, ["$processPacket", function(var_1) { $java.nms_Packet0KeepAlive_processPacket(this, var_1); }, "$readPacketData", function(var_1) { $java.nms_Packet0KeepAlive_readPacketData(this, var_1); }, "$writePacketData", function(var_1) { $java.nms_Packet0KeepAlive_writePacketData(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet0KeepAlive_getPacketSize(this); }], @@ -230660,9 +230658,9 @@ nms_Packet54PlayNoteBlock, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", funct nms_Packet55BlockDestroy, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet55BlockDestroy_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet55BlockDestroy_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet55BlockDestroy_getPacketSize(this); }], nms_Packet56MapChunks, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet56MapChunks_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet56MapChunks_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet56MapChunks_getPacketSize(this); }], nms_Packet60Explosion, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet60Explosion_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet60Explosion_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet60Explosion_getPacketSize(this); }], -nms_Packet61DoorChange, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet61DoorChange_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet61DoorChange_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet61DoorChange_getPacketSize(this); }]]); -$rt_metadata([nms_Packet62LevelSound, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet62LevelSound_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet62LevelSound_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet62LevelSound_getPacketSize(this); }], -nms_Packet63WorldParticles, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet63WorldParticles_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet63WorldParticles_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet63WorldParticles_getPacketSize(this); }], +nms_Packet61DoorChange, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet61DoorChange_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet61DoorChange_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet61DoorChange_getPacketSize(this); }], +nms_Packet62LevelSound, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet62LevelSound_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet62LevelSound_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet62LevelSound_getPacketSize(this); }]]); +$rt_metadata([nms_Packet63WorldParticles, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet63WorldParticles_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet63WorldParticles_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet63WorldParticles_getPacketSize(this); }], nms_Packet70GameEvent, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet70GameEvent_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet70GameEvent_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet70GameEvent_getPacketSize(this); }], nms_Packet71Weather, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet71Weather_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet71Weather_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet71Weather_getPacketSize(this); }], nms_Packet100OpenWindow, 0, nms_Packet, [], 0, 3, 0, ["$processPacket", function(var_1) { $java.nms_Packet100OpenWindow_processPacket(this, var_1); }, "$readPacketData", function(var_1) { $java.nms_Packet100OpenWindow_readPacketData(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet100OpenWindow_getPacketSize(this); }], @@ -230711,9 +230709,9 @@ $java.nms_EnchantmentArrowInfinite, "EnchantmentArrowInfinite", 28, nms_Enchantm otcit_DateTimeZoneProvider, 0, jl_Object, [], 4, 3, 0, 0, $java.ju_IANATimeZone, 0, ju_TimeZone, [], 0, 0, 0, 0, $java.otcit_DateTimeZone, 0, jl_Object, [], 1, 3, 0, 0, -$java.otcit_StorableDateTimeZone, 0, $java.otcit_DateTimeZone, [], 1, 3, 0, 0]); -$rt_metadata([$java.otcit_FixedDateTimeZone, "FixedDateTimeZone", 20, $java.otcit_StorableDateTimeZone, [], 4, 3, 0, ["$getOffset", function(var_1) { return $java.otcit_FixedDateTimeZone_getOffset(this, var_1); }, "$getStandardOffset", function(var_1) { return $java.otcit_FixedDateTimeZone_getStandardOffset(this, var_1); }, "$previousTransition", function(var_1) { return $java.otcit_FixedDateTimeZone_previousTransition(this, var_1); }], -$java.ju_AbstractQueue, 0, ju_AbstractCollection, [ju_Queue], 1, 3, 0, 0, +$java.otcit_StorableDateTimeZone, 0, $java.otcit_DateTimeZone, [], 1, 3, 0, 0, +$java.otcit_FixedDateTimeZone, "FixedDateTimeZone", 20, $java.otcit_StorableDateTimeZone, [], 4, 3, 0, ["$getOffset", function(var_1) { return $java.otcit_FixedDateTimeZone_getOffset(this, var_1); }, "$getStandardOffset", function(var_1) { return $java.otcit_FixedDateTimeZone_getStandardOffset(this, var_1); }, "$previousTransition", function(var_1) { return $java.otcit_FixedDateTimeZone_previousTransition(this, var_1); }]]); +$rt_metadata([$java.ju_AbstractQueue, 0, ju_AbstractCollection, [ju_Queue], 1, 3, 0, 0, ju_PriorityQueue, 0, $java.ju_AbstractQueue, [ji_Serializable], 0, 3, 0, ["$size2", function() { return $java.ju_PriorityQueue_size(this); }], otcit_DateTimeZoneProvider$1, 0, jl_Object, [ju_Comparator], 4, 0, 0, ["$compare", function(var_1, var_2) { return $java.otcit_DateTimeZoneProvider$1_compare0(this, var_1, var_2); }], $java.otcit_AliasDateTimeZone, "AliasDateTimeZone", 20, $java.otcit_StorableDateTimeZone, [], 0, 3, 0, ["$getOffset", function(var_1) { return $java.otcit_AliasDateTimeZone_getOffset(this, var_1); }, "$getStandardOffset", function(var_1) { return $java.otcit_AliasDateTimeZone_getStandardOffset(this, var_1); }, "$previousTransition", function(var_1) { return $java.otcit_AliasDateTimeZone_previousTransition(this, var_1); }], @@ -230736,6 +230734,8 @@ nms_Tuple, "Tuple", 28, jl_Object, [], 0, 3, 0, 0, jm_Conversion, 0, jl_Object, [], 0, 0, 0, 0, nms_TileEntityRenderer, 0, jl_Object, [], 0, 3, nms_TileEntityRenderer_$callClinit, 0, nms_RenderSorter, 0, jl_Object, [ju_Comparator], 0, 3, 0, ["$compare", function(var_1, var_2) { return $java.nms_RenderSorter_compare(this, var_1, var_2); }], +$java.nms_SlotCreativeInventory, "SlotCreativeInventory", 28, $java.nms_Slot, [], 0, 3, 0, ["$onPickupFromSlot", function(var_1, var_2) { $java.nms_SlotCreativeInventory_onPickupFromSlot(this, var_1, var_2); }, "$isItemValid", function(var_1) { return $java.nms_SlotCreativeInventory_isItemValid(this, var_1); }, "$getStack", function() { return $java.nms_SlotCreativeInventory_getStack(this); }, "$getHasStack", function() { return $java.nms_SlotCreativeInventory_getHasStack(this); }, "$putStack", function(var_1) +{ $java.nms_SlotCreativeInventory_putStack(this, var_1); }, "$onSlotChanged", function() { $java.nms_SlotCreativeInventory_onSlotChanged(this); }, "$getSlotStackLimit", function() { return $java.nms_SlotCreativeInventory_getSlotStackLimit(this); }, "$getBackgroundIconIndex", function() { return $java.nms_SlotCreativeInventory_getBackgroundIconIndex(this); }, "$decrStackSize0", function(var_1) { return $java.nms_SlotCreativeInventory_decrStackSize(this, var_1); }], nms_GuiOptions, 0, nms_GuiScreen, [], 0, 3, nms_GuiOptions_$callClinit, ["$initGui", function() { $java.nms_GuiOptions_initGui(this); }, "$actionPerformed", function(var_1) { $java.nms_GuiOptions_actionPerformed(this, var_1); }, "$drawScreen", function(var_1, var_2, var_3) { $java.nms_GuiOptions_drawScreen(this, var_1, var_2, var_3); }], nms_GuiLanguage, 0, nms_GuiScreen, [], 0, 3, 0, ["$initGui", function() { $java.nms_GuiLanguage_initGui(this); }, "$actionPerformed", function(var_1) { $java.nms_GuiLanguage_actionPerformed(this, var_1); }, "$drawScreen", function(var_1, var_2, var_3) { $java.nms_GuiLanguage_drawScreen(this, var_1, var_2, var_3); }, "$updateScreen", function() { $java.nms_GuiLanguage_updateScreen(this); }], nms_GuiMultiplayer, 0, nms_GuiScreen, [], 0, 3, 0, ["$initGui", function() { $java.nms_GuiMultiplayer_initGui(this); }, "$updateScreen", function() { $java.nms_GuiMultiplayer_updateScreen(this); }, "$onGuiClosed", function() { $java.nms_GuiMultiplayer_onGuiClosed(this); }, "$actionPerformed", function(var_1) { $java.nms_GuiMultiplayer_actionPerformed(this, var_1); }, "$confirmClicked", function(var_1, var_2) { $java.nms_GuiMultiplayer_confirmClicked(this, var_1, var_2); }, "$keyTyped", function(var_1, var_2) @@ -230930,18 +230930,18 @@ nms_EntityJumpHelper, 0, jl_Object, [], 0, 3, 0, 0, nms_EntityBodyHelper, 0, jl_Object, [], 0, 3, 0, 0, nms_EntitySenses, 0, jl_Object, [], 0, 3, 0, 0, cjj_GZIPInputStream, 0, cjj_InflaterInputStream, [], 0, 3, 0, 0, -nms_GuiWinGame, 0, nms_GuiScreen, [], 0, 3, 0, ["$updateScreen", function() { $java.nms_GuiWinGame_updateScreen(this); }, "$keyTyped", function(var_1, var_2) { $java.nms_GuiWinGame_keyTyped(this, var_1, var_2); }, "$initGui", function() { $java.nms_GuiWinGame_initGui(this); }, "$drawScreen", function(var_1, var_2, var_3) { $java.nms_GuiWinGame_drawScreen(this, var_1, var_2, var_3); }], +nms_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, nms_WorldProviderSurface, 0, nms_WorldProvider, [], 0, 3, 0, 0, -nms_ScoreObjectiveCriteria, 0, jl_Object, [], 3, 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); }], $java.nms_WorldSettings, 0, jl_Object, [], 4, 3, 0, 0, $java.nms_GuiDownloadTerrain, 0, nms_GuiScreen, [], 0, 3, 0, ["$keyTyped", function(var_1, var_2) { $java.nms_GuiDownloadTerrain_keyTyped(this, var_1, var_2); }, "$initGui", function() { $java.nms_GuiDownloadTerrain_initGui(this); }, "$updateScreen", function() { $java.nms_GuiDownloadTerrain_updateScreen(this); }, "$drawScreen", function(var_1, var_2, var_3) { $java.nms_GuiDownloadTerrain_drawScreen(this, var_1, var_2, var_3); }], nms_GuiMerchant, 0, nms_GuiContainer, [], 0, 3, 0, ["$initGui", function() { $java.nms_GuiMerchant_initGui(this); }, "$drawGuiContainerForegroundLayer", function(var_1, var_2) { $java.nms_GuiMerchant_drawGuiContainerForegroundLayer(this, var_1, var_2); }, "$updateScreen", function() { $java.nms_GuiMerchant_updateScreen(this); }, "$actionPerformed", function(var_1) { $java.nms_GuiMerchant_actionPerformed(this, var_1); }, "$drawGuiContainerBackgroundLayer", function(var_1, var_2, var_3) { $java.nms_GuiMerchant_drawGuiContainerBackgroundLayer(this, var_1, var_2, var_3); }, "$drawScreen", function(var_1, var_2, var_3) { $java.nms_GuiMerchant_drawScreen(this, var_1, var_2, var_3); }], nms_MerchantRecipeList, 0, ju_ArrayList, [], 0, 3, 0, 0, -nms_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); }], $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_GuiWinGame, 0, nms_GuiScreen, [], 0, 3, 0, ["$updateScreen", function() { $java.nms_GuiWinGame_updateScreen(this); }, "$keyTyped", function(var_1, var_2) { $java.nms_GuiWinGame_keyTyped(this, var_1, var_2); }, "$initGui", function() { $java.nms_GuiWinGame_initGui(this); }, "$drawScreen", function(var_1, var_2, var_3) { $java.nms_GuiWinGame_drawScreen(this, var_1, var_2, var_3); }], +nms_ScoreObjectiveCriteria, 0, jl_Object, [], 3, 3, 0, 0, +nms_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); }], $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); @@ -230949,12 +230949,12 @@ $java.nms_InventoryMerchant, 0, jl_Object, [nms_IInventory], 0, 3, 0, ["$getStac $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); }], -$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_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_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); }], @@ -231037,7 +231037,6 @@ cjj_Deflater, 0, cjj_ZStream, [], 4, 3, 0, 0, $java.nms_NibbleArray, 0, jl_Object, [], 0, 3, 0, 0, nms_FurnaceRecipes, 0, jl_Object, [], 0, 3, 0, 0, nms_EnumCreatureAttribute, 0, jl_Enum, [], 12, 3, 0, 0, -nms_BlockBaseRailLogic, 0, jl_Object, [], 0, 3, 0, 0, nms_InventoryLargeChest, 0, jl_Object, [nms_IInventory], 0, 3, 0, ["$getSizeInventory", function() { return $java.nms_InventoryLargeChest_getSizeInventory(this); }, "$getInvName", function() { return $java.nms_InventoryLargeChest_getInvName(this); }, "$isInvNameLocalized", function() { return $java.nms_InventoryLargeChest_isInvNameLocalized(this); }, "$getStackInSlot", function(var_1) { return $java.nms_InventoryLargeChest_getStackInSlot(this, var_1); }, "$decrStackSize", function(var_1, var_2) { return $java.nms_InventoryLargeChest_decrStackSize(this, var_1, var_2); }, "$setInventorySlotContents", function(var_1, var_2) { $java.nms_InventoryLargeChest_setInventorySlotContents(this, var_1, var_2); }, "$getInventoryStackLimit", function() { return $java.nms_InventoryLargeChest_getInventoryStackLimit(this); }, "$onInventoryChanged", function() { $java.nms_InventoryLargeChest_onInventoryChanged(this); }, "$isUseableByPlayer", function(var_1) { return $java.nms_InventoryLargeChest_isUseableByPlayer(this, var_1); }, "$openChest", function() { $java.nms_InventoryLargeChest_openChest(this); }, "$closeChest", function() { $java.nms_InventoryLargeChest_closeChest(this); }, "$isStackValidForSlot", function(var_1, var_2) { return $java.nms_InventoryLargeChest_isStackValidForSlot(this, var_1, var_2); }], @@ -231045,6 +231044,7 @@ nms_GuiEditSign, 0, nms_GuiScreen, [], 0, 3, nms_GuiEditSign_$callClinit, ["$ini { $java.nms_GuiEditSign_drawScreen(this, var_1, var_2, var_3); }], nms_GuiCommandBlock, 0, nms_GuiScreen, [], 0, 3, 0, ["$updateScreen", function() { $java.nms_GuiCommandBlock_updateScreen(this); }, "$initGui", function() { $java.nms_GuiCommandBlock_initGui(this); }, "$onGuiClosed", function() { $java.nms_GuiCommandBlock_onGuiClosed(this); }, "$actionPerformed", function(var_1) { $java.nms_GuiCommandBlock_actionPerformed(this, var_1); }, "$keyTyped", function(var_1, var_2) { $java.nms_GuiCommandBlock_keyTyped(this, var_1, var_2); }, "$mouseClicked", function(var_1, var_2, var_3) { $java.nms_GuiCommandBlock_mouseClicked(this, var_1, var_2, var_3); }, "$drawScreen", function(var_1, var_2, var_3) { $java.nms_GuiCommandBlock_drawScreen(this, var_1, var_2, var_3); }], +nms_BlockBaseRailLogic, 0, jl_Object, [], 0, 3, 0, 0, nms_EntityHugeExplodeFX, "EntityHugeExplodeFX", 28, nms_EntityFX, [], 0, 3, 0, ["$renderParticle", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { $java.nms_EntityHugeExplodeFX_renderParticle(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$onUpdate", function() { $java.nms_EntityHugeExplodeFX_onUpdate(this); }, "$getFXLayer", function() { return $java.nms_EntityHugeExplodeFX_getFXLayer(this); }], nms_EntityBubbleFX, "EntityBubbleFX", 28, nms_EntityFX, [], 0, 3, 0, ["$onUpdate", function() { $java.nms_EntityBubbleFX_onUpdate(this); }], nms_EntitySuspendFX, "EntitySuspendFX", 28, nms_EntityFX, [], 0, 3, 0, ["$onUpdate", function() { $java.nms_EntitySuspendFX_onUpdate(this); }], @@ -231072,10 +231072,10 @@ nms_EntityFireworkSparkFX, "EntityFireworkSparkFX", 28, nms_EntityFX, [], 0, 3, nms_EntityFireworkStarterFX, "EntityFireworkStarterFX", 28, nms_EntityFX, [], 0, 3, 0, ["$renderParticle", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { $java.nms_EntityFireworkStarterFX_renderParticle(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$onUpdate", function() { $java.nms_EntityFireworkStarterFX_onUpdate(this); }, "$getFXLayer", function() { return $java.nms_EntityFireworkStarterFX_getFXLayer(this); }], cjj_Deflate, 0, jl_Object, [jl_Cloneable], 4, 3, 0, 0, nms_EnchantmentNameParts, 0, jl_Object, [], 0, 3, $java.nms_EnchantmentNameParts_$callClinit, 0]); -$rt_metadata([nms_GuiButtonMerchant, "GuiButtonMerchant", 28, nms_GuiButton, [], 0, 0, 0, ["$drawButton", function(var_1, var_2, var_3) { $java.nms_GuiButtonMerchant_drawButton(this, var_1, var_2, var_3); }], -nms_GuiBeaconButton, 0, nms_GuiButton, [], 0, 0, 0, ["$drawButton", function(var_1, var_2, var_3) { $java.nms_GuiBeaconButton_drawButton(this, var_1, var_2, var_3); }], +$rt_metadata([nms_GuiBeaconButton, 0, nms_GuiButton, [], 0, 0, 0, ["$drawButton", function(var_1, var_2, var_3) { $java.nms_GuiBeaconButton_drawButton(this, var_1, var_2, var_3); }], $java.nms_GuiBeaconButtonConfirm, "GuiBeaconButtonConfirm", 28, nms_GuiBeaconButton, [], 0, 0, 0, ["$func_82251_b", function(var_1, var_2) { $java.nms_GuiBeaconButtonConfirm_func_82251_b(this, var_1, var_2); }], $java.nms_GuiBeaconButtonCancel, "GuiBeaconButtonCancel", 28, nms_GuiBeaconButton, [], 0, 0, 0, ["$func_82251_b", function(var_1, var_2) { $java.nms_GuiBeaconButtonCancel_func_82251_b(this, var_1, var_2); }], +nms_GuiButtonMerchant, "GuiButtonMerchant", 28, nms_GuiButton, [], 0, 0, 0, ["$drawButton", function(var_1, var_2, var_3) { $java.nms_GuiButtonMerchant_drawButton(this, var_1, var_2, var_3); }], $java.nms_GuiBeaconButtonPower, "GuiBeaconButtonPower", 28, nms_GuiBeaconButton, [], 0, 0, 0, ["$func_82251_b", function(var_1, var_2) { $java.nms_GuiBeaconButtonPower_func_82251_b(this, var_1, var_2); }], cjj_Tree, 0, jl_Object, [], 4, 0, 0, 0, nms_EntitySelectorAlive, 0, jl_Object, [nms_IEntitySelector], 4, 0, 0, ["$isEntityApplicable", function(var_1) { return $java.nms_EntitySelectorAlive_isEntityApplicable(this, var_1); }], @@ -231249,8 +231249,8 @@ $rt_stringPool(["Can\'t enter monitor from another thread synchronously", "@", " "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", "NOT_SET", "SURVIVAL", "survival", "CREATIVE", "creative", "ADVENTURE", "adventure", "flat", "largeBiomes", "default_1_1", "doFireTick", "doMobSpawning", "commandBlockOutput", "vines", "/title/win.txt", "PLAYERNAME", "XXXXXXXX", "/title/credits.txt", "\t", " ", "[C]", "%blur%/gui/background.png", "dummy", "deathCount", "playerKillCount", -"totalKillCount", "health", "multiplayer.downloadingTerrain", "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", +"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", "NOT_SET", "SURVIVAL", "survival", "CREATIVE", "creative", "ADVENTURE", "adventure", "flat", "largeBiomes", "default_1_1", "doFireTick", "doMobSpawning", "commandBlockOutput", "vines", "multiplayer.downloadingTerrain", "entity.Villager.name", "MC|TrSel", "/gui/trading.png", "/title/win.txt", "PLAYERNAME", "XXXXXXXX", "/title/credits.txt", +"\t", " ", "[C]", "%blur%/gui/background.png", "dummy", "deathCount", "playerKillCount", "totalKillCount", "health", "###", "#W#", "#X#", "XXX", "##", "X#X", "# #", " X ", "AAA", "BEB", "CCC", " # ", "X X", "XRX", "XSX", " B ", "A ", " B", "# ", "## ", " #", " #X", "# X", "# ", " X", "III", "#R#", "TTT", "D#D", " i ", "iii", "GGG", "QQQ", "WWW", "I I", "ICI", " I ", " recipes", "Invalid shapeless recipy!", "MultiplayerChunkCache: ", "XX", "X#", "MMM", "#-", "#E#", " R ", "RGR", "GSG", "OOO", "NN", "/gui/container.png", "/gui/crafting.png", "MC|Beacon", "tile.beacon.primary", "tile.beacon.secondary", "container.repair", "container.repair.cost", "container.repair.expensive", "MC|ItemName", "/gui/repair.png", "/gui/trap.png", "/gui/hopper.png", "/gui/alchemy.png", "/gui/enchant.png", "/gui/furnace.png", "OK", "NOT_POSSIBLE_HERE", "NOT_POSSIBLE_NOW", "TOO_FAR_AWAY", "OTHER_PROBLEM", "NOT_SAFE", "minecart.base", "minecart.inside", "Repair", "Naming an item only, cost too high; giving discount to cap cost to 39 levels", "Enchant", "finished", "failed to deflate", "UNDEFINED", "UNDEAD", "ARTHROPOD", "Done", "MC|AdvCdm", "advMode.setCommand", "advMode.command", "advMode.nearestPlayer", "advMode.randomPlayer", "advMode.allPlayers", "/misc/footprint.png", "/misc/explosion.png", "fireworks.", "blast", "largeBlast", "_far", "twinkle", "twinkle_far", "stream end", "file error", "stream error", "data error", "insufficient memory", "buffer error", "incompatible version", "the elder scrolls klaatu berata niktu xyzzy bless curse light darkness fire air earth water hot dry cold wet ignite snuff embiggen twist shorten stretch fiddle destroy imbue galvanize enchant free limited range of towards inside sphere cube self other ball mental physical grow shrink demon elemental spirit animal creature beast humanoid undead fresh stale ", "pages", "book.signButton", "book.finalizeButton", "MC|BEdit", "MC|BSign", "book.editTitle", "book.finalizeWarning", "book.pageIndicator", "/gui/book.png", "OW KNOWS!"]); diff --git a/src/main/java/me/ayunami2000/ayuncraft/tmi/TMIConfig.java b/src/main/java/me/ayunami2000/ayuncraft/tmi/TMIConfig.java index 824ff55..d364435 100644 --- a/src/main/java/me/ayunami2000/ayuncraft/tmi/TMIConfig.java +++ b/src/main/java/me/ayunami2000/ayuncraft/tmi/TMIConfig.java @@ -177,7 +177,7 @@ public class TMIConfig { if (Minecraft.getMinecraft().currentScreen instanceof GuiContainerCreative) { - TMIPrivateFields.setCreativeTab.invoke((GuiContainerCreative)Minecraft.getMinecraft().currentScreen, new Object[] {CreativeTabs.tabInventory}); + ((GuiContainerCreative)Minecraft.getMinecraft().currentScreen).setCurrentCreativeTab(CreativeTabs.tabInventory); } } catch (Exception var5) diff --git a/src/main/java/me/ayunami2000/ayuncraft/tmi/TMIController.java b/src/main/java/me/ayunami2000/ayuncraft/tmi/TMIController.java index f5be230..a48d10a 100644 --- a/src/main/java/me/ayunami2000/ayuncraft/tmi/TMIController.java +++ b/src/main/java/me/ayunami2000/ayuncraft/tmi/TMIController.java @@ -51,7 +51,7 @@ public class TMIController implements _tmi_MgButtonHandler, _tmi_MgItemHandler, TMIUtils.suppressAchievementNotice(); boolean var6 = false; - if (this.window instanceof GuiContainerCreative && TMIPrivateFields.creativeTab.getInt(this.window) == CreativeTabs.tabAllSearch.getTabIndex()) + if (this.window instanceof GuiContainerCreative && ((GuiContainerCreative)this.window).selectedTabIndex == CreativeTabs.tabAllSearch.getTabIndex()) { var6 = true; } @@ -111,9 +111,9 @@ public class TMIController implements _tmi_MgButtonHandler, _tmi_MgItemHandler, try { - if (TMIUtils.isCreativeMode() && TMIPrivateFields.creativeTab.getInt(this.window) == CreativeTabs.tabAllSearch.getTabIndex()) + if (TMIUtils.isCreativeMode() && ((GuiContainerCreative)this.window).selectedTabIndex == CreativeTabs.tabAllSearch.getTabIndex()) { - TMIPrivateFields.setCreativeTab.invoke((GuiContainerCreative)this.window, new Object[] {CreativeTabs.tabInventory}); + ((GuiContainerCreative)this.window).setCurrentCreativeTab(CreativeTabs.tabInventory); } } catch (Exception var3) @@ -169,8 +169,8 @@ public class TMIController implements _tmi_MgButtonHandler, _tmi_MgItemHandler, try { - TMIPrivateFields.lwjglMouseEventDWheel.setInt((Object)null, 0); - TMIPrivateFields.lwjglMouseDWheel.setInt((Object)null, 0); + //TMIPrivateFields.lwjglMouseEventDWheel.setInt((Object)null, 0); + //TMIPrivateFields.lwjglMouseDWheel.setInt((Object)null, 0); } catch (Exception var5) { @@ -212,7 +212,7 @@ public class TMIController implements _tmi_MgButtonHandler, _tmi_MgItemHandler, { try { - Slot var10 = (Slot)((Slot)TMIPrivateFields.creativeSlot.get((SlotCreativeInventory)var5)); + Slot var10 = ((SlotCreativeInventory)var5).theSlot; var12 = var10.slotNumber; } catch (Exception var16) diff --git a/src/main/java/me/ayunami2000/ayuncraft/tmi/TMIItemSnow.java b/src/main/java/me/ayunami2000/ayuncraft/tmi/TMIItemSnow.java index 6a4471c..1750b16 100644 --- a/src/main/java/me/ayunami2000/ayuncraft/tmi/TMIItemSnow.java +++ b/src/main/java/me/ayunami2000/ayuncraft/tmi/TMIItemSnow.java @@ -18,7 +18,7 @@ public class TMIItemSnow extends ItemBlock { try { - TMIPrivateFields.setBlockBounds.invoke(Block.snow, new Object[] {Float.valueOf(0.0F), Float.valueOf(0.0F), Float.valueOf(0.0F), Float.valueOf(1.0F), Float.valueOf((float)(2 * (1 + var1)) / 16.0F), Float.valueOf(1.0F)}); + Block.snow.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, (float) (2 * (1 + var1)) / 16.0F, 1.0F); } catch (Exception var3) { diff --git a/src/main/java/me/ayunami2000/ayuncraft/tmi/TMIPrivateFields.java b/src/main/java/me/ayunami2000/ayuncraft/tmi/TMIPrivateFields.java index 75aea72..5f961ee 100644 --- a/src/main/java/me/ayunami2000/ayuncraft/tmi/TMIPrivateFields.java +++ b/src/main/java/me/ayunami2000/ayuncraft/tmi/TMIPrivateFields.java @@ -1,19 +1,42 @@ package me.ayunami2000.ayuncraft.tmi; -import java.io.DataInput; -import java.io.DataOutput; -import java.lang.reflect.Field; -import java.lang.reflect.Method; +import net.minecraft.src.EntityList; + import java.util.Iterator; -import java.util.Map; import java.util.SortedSet; import java.util.TreeSet; -import net.minecraft.src.*; -import net.lax1dude.eaglercraft.EaglerAdapter; - public class TMIPrivateFields { + + public static SortedSet getSpawnerEntityIdSet() + { + try + { + TreeSet var0 = new TreeSet(EntityList.IDtoClassMapping.keySet()); + Iterator var1 = TMIItemInfo.excludedSpawnerIds.iterator(); + + while (var1.hasNext()) + { + Integer var2 = (Integer)var1.next(); + + if (var0.contains(var2)) + { + var0.remove(var2); + } + } + + return var0; + } + catch (Exception var3) + { + System.out.println(var3); + TreeSet retval=new TreeSet<>(); + retval.add(0); + return retval; + } + } + /* public static Field lwjglMouseDWheel; public static Field lwjglMouseEventDWheel; public static Field textFieldX; @@ -205,4 +228,5 @@ public class TMIPrivateFields var1.printStackTrace(); } } + */ } diff --git a/src/main/java/me/ayunami2000/ayuncraft/tmi/TMIUtils.java b/src/main/java/me/ayunami2000/ayuncraft/tmi/TMIUtils.java index 5841899..1e6765a 100644 --- a/src/main/java/me/ayunami2000/ayuncraft/tmi/TMIUtils.java +++ b/src/main/java/me/ayunami2000/ayuncraft/tmi/TMIUtils.java @@ -956,7 +956,7 @@ public class TMIUtils { try { - TMIPrivateFields.stackDamage.setInt(var0, var1); + var0.itemDamage=var1; } catch (Exception var3) { @@ -1007,15 +1007,7 @@ public class TMIUtils public static int getGameMode() { - try - { - return ((EnumGameType)TMIPrivateFields.gameMode.get(Minecraft.getMinecraft().playerController)).getID(); - } - catch (IllegalAccessException var1) - { - System.out.println(var1); - return 0; - } + return Minecraft.getMinecraft().playerController.currentGameType.getID(); } public static void setGameMode(int var0) @@ -1486,6 +1478,7 @@ public class TMIUtils Item var1 = Item.itemsList[var0]; Item.itemsList[var0] = null; + /* try { Class var2 = Class.forName("cpw.mods.fml.common.registry.GameData"); @@ -1506,6 +1499,7 @@ public class TMIUtils { ; } + */ return var1; } diff --git a/src/main/java/me/ayunami2000/ayuncraft/tmi/_tmi_MgCanvas.java b/src/main/java/me/ayunami2000/ayuncraft/tmi/_tmi_MgCanvas.java index 547aecb..ba17a7e 100644 --- a/src/main/java/me/ayunami2000/ayuncraft/tmi/_tmi_MgCanvas.java +++ b/src/main/java/me/ayunami2000/ayuncraft/tmi/_tmi_MgCanvas.java @@ -42,7 +42,7 @@ public class _tmi_MgCanvas try { - TMIPrivateFields.drawGradientRect.invoke(this.window, new Object[] {Integer.valueOf(var1), Integer.valueOf(var2), Integer.valueOf(var3), Integer.valueOf(var4), Integer.valueOf(var5), Integer.valueOf(var6)}); + this.window.drawGradientRect(var1, var2, var3, var4, var5, var6); } catch (Exception var8) { diff --git a/src/main/java/me/ayunami2000/ayuncraft/tmi/_tmi_MgTextField.java b/src/main/java/me/ayunami2000/ayuncraft/tmi/_tmi_MgTextField.java index eca480a..da472a6 100644 --- a/src/main/java/me/ayunami2000/ayuncraft/tmi/_tmi_MgTextField.java +++ b/src/main/java/me/ayunami2000/ayuncraft/tmi/_tmi_MgTextField.java @@ -32,17 +32,10 @@ public class _tmi_MgTextField extends _tmi_MgWidget { if (this.show) { - try - { - TMIPrivateFields.textFieldX.setInt(this.textField, this.x); - TMIPrivateFields.textFieldY.setInt(this.textField, this.y); - TMIPrivateFields.textFieldWidth.setInt(this.textField, this.width); - TMIPrivateFields.textFieldHeight.setInt(this.textField, this.height); - } - catch (IllegalAccessException var5) - { - System.out.println(var5); - } + this.textField.xPos=this.x; + this.textField.yPos=this.y; + this.textField.width=this.width; + this.textField.height=this.height; this.textField.drawTextBox(); diff --git a/src/main/java/net/minecraft/src/Block.java b/src/main/java/net/minecraft/src/Block.java index 6441110..6f97283 100644 --- a/src/main/java/net/minecraft/src/Block.java +++ b/src/main/java/net/minecraft/src/Block.java @@ -443,7 +443,7 @@ public class Block { /** * Sets the bounds of the block. minX, minY, minZ, maxX, maxY, maxZ */ - protected final void setBlockBounds(float par1, float par2, float par3, float par4, float par5, float par6) { + public final void setBlockBounds(float par1, float par2, float par3, float par4, float par5, float par6) { this.minX = (double) par1; this.minY = (double) par2; this.minZ = (double) par3; diff --git a/src/main/java/net/minecraft/src/EntityList.java b/src/main/java/net/minecraft/src/EntityList.java index 3ed5dc4..c5a8437 100644 --- a/src/main/java/net/minecraft/src/EntityList.java +++ b/src/main/java/net/minecraft/src/EntityList.java @@ -12,7 +12,7 @@ public class EntityList { private static Map classToStringMapping = new HashMap(); /** provides a mapping between an entityID and an Entity Class */ - private static Map IDtoClassMapping = new HashMap(); + public static Map IDtoClassMapping = new HashMap(); /** provides a mapping between an Entity Class and an entity ID */ private static Map classToIDMapping = new HashMap(); diff --git a/src/main/java/net/minecraft/src/Gui.java b/src/main/java/net/minecraft/src/Gui.java index 00b0260..aa23359 100644 --- a/src/main/java/net/minecraft/src/Gui.java +++ b/src/main/java/net/minecraft/src/Gui.java @@ -67,7 +67,7 @@ public class Gui { /** * Draws a rectangle with a vertical gradient between the specified colors. */ - protected void drawGradientRect(int par1, int par2, int par3, int par4, int par5, int par6) { + public void drawGradientRect(int par1, int par2, int par3, int par4, int par5, int par6) { float var7 = (float) (par5 >> 24 & 255) / 255.0F; float var8 = (float) (par5 >> 16 & 255) / 255.0F; float var9 = (float) (par5 >> 8 & 255) / 255.0F; diff --git a/src/main/java/net/minecraft/src/GuiContainerCreative.java b/src/main/java/net/minecraft/src/GuiContainerCreative.java index 5c43a89..8acd04a 100644 --- a/src/main/java/net/minecraft/src/GuiContainerCreative.java +++ b/src/main/java/net/minecraft/src/GuiContainerCreative.java @@ -11,7 +11,7 @@ public class GuiContainerCreative extends InventoryEffectRenderer { private static InventoryBasic inventory = new InventoryBasic("tmp", true, 45); /** Currently selected creative inventory tab index. */ - private static int selectedTabIndex = CreativeTabs.tabBlock.getTabIndex(); + public static int selectedTabIndex = CreativeTabs.tabBlock.getTabIndex(); /** Amount scrolled in Creative mode inventory (0 = top, 1 = bottom) */ private float currentScroll = 0.0F; @@ -367,7 +367,7 @@ public class GuiContainerCreative extends InventoryEffectRenderer { return selectedTabIndex != CreativeTabs.tabInventory.getTabIndex() && CreativeTabs.creativeTabArray[selectedTabIndex].shouldHidePlayerInventory() && ((ContainerCreative) this.inventorySlots).hasMoreThan1PageOfItemsInList(); } - private void setCurrentCreativeTab(CreativeTabs par1CreativeTabs) { + public void setCurrentCreativeTab(CreativeTabs par1CreativeTabs) { int var2 = selectedTabIndex; selectedTabIndex = par1CreativeTabs.getTabIndex(); ContainerCreative var3 = (ContainerCreative) this.inventorySlots; diff --git a/src/main/java/net/minecraft/src/GuiTextField.java b/src/main/java/net/minecraft/src/GuiTextField.java index bdb496f..10fb826 100644 --- a/src/main/java/net/minecraft/src/GuiTextField.java +++ b/src/main/java/net/minecraft/src/GuiTextField.java @@ -10,12 +10,12 @@ public class GuiTextField extends Gui { * screen. */ private final FontRenderer fontRenderer; - private final int xPos; - private final int yPos; + public int xPos; + public int yPos; /** The width of this text field. */ - private final int width; - private final int height; + public int width; + public int height; /** Have the current text beign edited on the textbox. */ private String text = ""; diff --git a/src/main/java/net/minecraft/src/ItemStack.java b/src/main/java/net/minecraft/src/ItemStack.java index b09961e..488dcf1 100644 --- a/src/main/java/net/minecraft/src/ItemStack.java +++ b/src/main/java/net/minecraft/src/ItemStack.java @@ -25,7 +25,7 @@ public final class ItemStack { public NBTTagCompound stackTagCompound; /** Damage dealt to the item or number of use. Raise when using items. */ - private int itemDamage; + public int itemDamage; /** Item frame this stack is on, or null if not on an item frame. */ private EntityItemFrame itemFrame; diff --git a/src/main/java/net/minecraft/src/PlayerControllerMP.java b/src/main/java/net/minecraft/src/PlayerControllerMP.java index ebc30c3..443f34c 100644 --- a/src/main/java/net/minecraft/src/PlayerControllerMP.java +++ b/src/main/java/net/minecraft/src/PlayerControllerMP.java @@ -35,7 +35,7 @@ public class PlayerControllerMP { private boolean isHittingBlock = false; /** Current game type for the player */ - private EnumGameType currentGameType; + public EnumGameType currentGameType; /** Index of the current item held by the player in the inventory hotbar */ private int currentPlayerItem; diff --git a/src/main/java/net/minecraft/src/SlotCreativeInventory.java b/src/main/java/net/minecraft/src/SlotCreativeInventory.java index 005c965..ee2ded8 100644 --- a/src/main/java/net/minecraft/src/SlotCreativeInventory.java +++ b/src/main/java/net/minecraft/src/SlotCreativeInventory.java @@ -1,7 +1,7 @@ package net.minecraft.src; public class SlotCreativeInventory extends Slot { - private final Slot theSlot; + public final Slot theSlot; final GuiContainerCreative theCreativeInventory;