This commit is contained in:
ThatGamerBlue
2021-05-19 12:59:30 +01:00
parent 7eb96d606a
commit 29a3d313a4
438 changed files with 51991 additions and 51730 deletions

View File

@@ -1,310 +1,178 @@
import java.io.BufferedReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringReader;
import java.io.StringWriter;
import net.runelite.mapping.Export;
import net.runelite.mapping.Implements;
import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("fl")
@ObfuscatedName("gb")
@Implements("WorldMapCacheName")
public class WorldMapCacheName {
@ObfuscatedName("f")
@ObfuscatedName("h")
@ObfuscatedSignature(
descriptor = "Lfl;"
descriptor = "Lgb;"
)
public static final WorldMapCacheName field1768;
public static final WorldMapCacheName field2128;
@ObfuscatedName("c")
@ObfuscatedSignature(
descriptor = "Lgb;"
)
public static final WorldMapCacheName field2123;
@ObfuscatedName("o")
@ObfuscatedSignature(
descriptor = "Lfl;"
descriptor = "Lgb;"
)
public static final WorldMapCacheName field1761;
@ObfuscatedName("u")
public static final WorldMapCacheName field2124;
@ObfuscatedName("g")
@ObfuscatedSignature(
descriptor = "Lfl;"
descriptor = "Lgb;"
)
public static final WorldMapCacheName field1763;
@ObfuscatedName("p")
static final WorldMapCacheName field2122;
@ObfuscatedName("l")
@ObfuscatedSignature(
descriptor = "Lfl;"
descriptor = "Lgb;"
)
static final WorldMapCacheName field1764;
@ObfuscatedName("b")
@ObfuscatedSignature(
descriptor = "Lfl;"
public static final WorldMapCacheName field2126;
@ObfuscatedName("i")
@ObfuscatedGetter(
intValue = -159166525
)
public static final WorldMapCacheName field1765;
@ObfuscatedName("e")
@Export("Interpreter_intStackSize")
static int Interpreter_intStackSize;
@ObfuscatedName("z")
@Export("name")
public final String name;
static {
field1768 = new WorldMapCacheName("details"); // L: 4
field1761 = new WorldMapCacheName("compositemap"); // L: 5
field1763 = new WorldMapCacheName("compositetexture"); // L: 6
field1764 = new WorldMapCacheName("area"); // L: 7
field1765 = new WorldMapCacheName("labels"); // L: 8
field2128 = new WorldMapCacheName("details"); // L: 4
field2123 = new WorldMapCacheName("compositemap"); // L: 5
field2124 = new WorldMapCacheName("compositetexture"); // L: 6
field2122 = new WorldMapCacheName("area"); // L: 7
field2126 = new WorldMapCacheName("labels"); // L: 8
}
WorldMapCacheName(String var1) {
this.name = var1; // L: 12
} // L: 13
@ObfuscatedName("f")
@ObfuscatedName("o")
@ObfuscatedSignature(
descriptor = "(B)Z",
garbageValue = "126"
descriptor = "(Ljava/lang/Throwable;I)Ljava/lang/String;",
garbageValue = "-1988606956"
)
public static boolean method3189() {
long var0 = ObjectSound.currentTimeMillis(); // L: 42
int var2 = (int)(var0 - NetCache.field3284); // L: 43
NetCache.field3284 = var0; // L: 44
if (var2 > 200) { // L: 45
var2 = 200;
static String method3646(Throwable var0) throws IOException {
String var1;
if (var0 instanceof RunException) { // L: 67
RunException var2 = (RunException)var0; // L: 68
var1 = var2.message + " | "; // L: 69
var0 = var2.throwable; // L: 70
} else {
var1 = ""; // L: 72
}
NetCache.NetCache_loadTime += var2; // L: 46
if (NetCache.NetCache_pendingResponsesCount == 0 && NetCache.NetCache_pendingPriorityResponsesCount == 0 && NetCache.NetCache_pendingWritesCount == 0 && NetCache.NetCache_pendingPriorityWritesCount == 0) { // L: 47
return true;
} else if (class303.NetCache_socket == null) { // L: 48
return false;
} else {
try {
if (NetCache.NetCache_loadTime > 30000) { // L: 50
throw new IOException();
} else {
NetFileRequest var3;
Buffer var4;
while (NetCache.NetCache_pendingPriorityResponsesCount < 200 && NetCache.NetCache_pendingPriorityWritesCount > 0) { // L: 51
var3 = (NetFileRequest)NetCache.NetCache_pendingPriorityWrites.first(); // L: 52
var4 = new Buffer(4); // L: 53
var4.writeByte(1); // L: 54
var4.writeMedium((int)var3.key); // L: 55
class303.NetCache_socket.write(var4.array, 0, 4); // L: 56
NetCache.NetCache_pendingPriorityResponses.put(var3, var3.key); // L: 57
--NetCache.NetCache_pendingPriorityWritesCount; // L: 58
++NetCache.NetCache_pendingPriorityResponsesCount; // L: 59
}
StringWriter var12 = new StringWriter(); // L: 73
PrintWriter var3 = new PrintWriter(var12); // L: 74
var0.printStackTrace(var3); // L: 75
var3.close(); // L: 76
String var4 = var12.toString(); // L: 77
BufferedReader var5 = new BufferedReader(new StringReader(var4)); // L: 78
String var6 = var5.readLine(); // L: 79
while (NetCache.NetCache_pendingResponsesCount < 200 && NetCache.NetCache_pendingWritesCount > 0) { // L: 61
var3 = (NetFileRequest)NetCache.NetCache_pendingWritesQueue.removeLast(); // L: 62
var4 = new Buffer(4); // L: 63
var4.writeByte(0); // L: 64
var4.writeMedium((int)var3.key); // L: 65
class303.NetCache_socket.write(var4.array, 0, 4); // L: 66
var3.removeDual(); // L: 67
NetCache.NetCache_pendingResponses.put(var3, var3.key); // L: 68
--NetCache.NetCache_pendingWritesCount; // L: 69
++NetCache.NetCache_pendingResponsesCount; // L: 70
}
for (int var15 = 0; var15 < 100; ++var15) { // L: 72
int var16 = class303.NetCache_socket.available(); // L: 73
if (var16 < 0) { // L: 74
throw new IOException();
}
if (var16 == 0) { // L: 75
break;
}
NetCache.NetCache_loadTime = 0; // L: 76
byte var5 = 0; // L: 77
if (class208.NetCache_currentResponse == null) { // L: 78
var5 = 8;
} else if (NetCache.field3295 == 0) { // L: 79
var5 = 1;
}
int var6;
int var7;
int var8;
int var10;
byte[] var10000;
int var10001;
Buffer var22;
if (var5 > 0) { // L: 80
var6 = var5 - NetCache.NetCache_responseHeaderBuffer.offset; // L: 81
if (var6 > var16) { // L: 82
var6 = var16;
}
class303.NetCache_socket.read(NetCache.NetCache_responseHeaderBuffer.array, NetCache.NetCache_responseHeaderBuffer.offset, var6); // L: 83
if (NetCache.field3287 != 0) { // L: 84
for (var7 = 0; var7 < var6; ++var7) { // L: 85
var10000 = NetCache.NetCache_responseHeaderBuffer.array;
var10001 = var7 + NetCache.NetCache_responseHeaderBuffer.offset;
var10000[var10001] ^= NetCache.field3287;
}
}
var22 = NetCache.NetCache_responseHeaderBuffer; // L: 87
var22.offset += var6;
if (NetCache.NetCache_responseHeaderBuffer.offset < var5) { // L: 88
break;
}
if (class208.NetCache_currentResponse == null) { // L: 89
NetCache.NetCache_responseHeaderBuffer.offset = 0; // L: 90
var7 = NetCache.NetCache_responseHeaderBuffer.readUnsignedByte(); // L: 91
var8 = NetCache.NetCache_responseHeaderBuffer.readUnsignedShort(); // L: 92
int var9 = NetCache.NetCache_responseHeaderBuffer.readUnsignedByte(); // L: 93
var10 = NetCache.NetCache_responseHeaderBuffer.readInt(); // L: 94
long var11 = (long)(var8 + (var7 << 16)); // L: 95
NetFileRequest var13 = (NetFileRequest)NetCache.NetCache_pendingPriorityResponses.get(var11); // L: 96
NetSocket.field1498 = true; // L: 97
if (var13 == null) { // L: 98
var13 = (NetFileRequest)NetCache.NetCache_pendingResponses.get(var11); // L: 99
NetSocket.field1498 = false; // L: 100
}
if (var13 == null) { // L: 102
throw new IOException(); // L: 103
}
int var14 = var9 == 0 ? 5 : 9; // L: 105
class208.NetCache_currentResponse = var13; // L: 106
InterfaceParent.NetCache_responseArchiveBuffer = new Buffer(var14 + var10 + class208.NetCache_currentResponse.padding); // L: 107
InterfaceParent.NetCache_responseArchiveBuffer.writeByte(var9); // L: 108
InterfaceParent.NetCache_responseArchiveBuffer.writeInt(var10); // L: 109
NetCache.field3295 = 8; // L: 110
NetCache.NetCache_responseHeaderBuffer.offset = 0; // L: 111
} else if (NetCache.field3295 == 0) { // L: 114
if (NetCache.NetCache_responseHeaderBuffer.array[0] == -1) { // L: 115
NetCache.field3295 = 1; // L: 116
NetCache.NetCache_responseHeaderBuffer.offset = 0; // L: 117
} else {
class208.NetCache_currentResponse = null; // L: 121
}
}
} else {
var6 = InterfaceParent.NetCache_responseArchiveBuffer.array.length - class208.NetCache_currentResponse.padding; // L: 127
var7 = 512 - NetCache.field3295; // L: 128
if (var7 > var6 - InterfaceParent.NetCache_responseArchiveBuffer.offset) { // L: 129
var7 = var6 - InterfaceParent.NetCache_responseArchiveBuffer.offset;
}
if (var7 > var16) { // L: 130
var7 = var16;
}
class303.NetCache_socket.read(InterfaceParent.NetCache_responseArchiveBuffer.array, InterfaceParent.NetCache_responseArchiveBuffer.offset, var7); // L: 131
if (NetCache.field3287 != 0) { // L: 132
for (var8 = 0; var8 < var7; ++var8) { // L: 133
var10000 = InterfaceParent.NetCache_responseArchiveBuffer.array;
var10001 = var8 + InterfaceParent.NetCache_responseArchiveBuffer.offset;
var10000[var10001] ^= NetCache.field3287;
}
}
var22 = InterfaceParent.NetCache_responseArchiveBuffer; // L: 135
var22.offset += var7;
NetCache.field3295 += var7; // L: 136
if (var6 == InterfaceParent.NetCache_responseArchiveBuffer.offset) { // L: 137
if (16711935L == class208.NetCache_currentResponse.key) { // L: 138
BuddyRankComparator.NetCache_reference = InterfaceParent.NetCache_responseArchiveBuffer; // L: 139
for (var8 = 0; var8 < 256; ++var8) { // L: 140
Archive var17 = NetCache.NetCache_archives[var8]; // L: 141
if (var17 != null) { // L: 142
BuddyRankComparator.NetCache_reference.offset = var8 * 8 + 5; // L: 143
var10 = BuddyRankComparator.NetCache_reference.readInt(); // L: 144
int var18 = BuddyRankComparator.NetCache_reference.readInt(); // L: 145
var17.loadIndex(var10, var18); // L: 146
}
}
} else {
NetCache.NetCache_crc.reset(); // L: 151
NetCache.NetCache_crc.update(InterfaceParent.NetCache_responseArchiveBuffer.array, 0, var6); // L: 152
var8 = (int)NetCache.NetCache_crc.getValue(); // L: 153
if (var8 != class208.NetCache_currentResponse.crc) { // L: 154
try {
class303.NetCache_socket.close(); // L: 156
} catch (Exception var20) { // L: 158
}
++NetCache.NetCache_crcMismatches; // L: 159
class303.NetCache_socket = null; // L: 160
NetCache.field3287 = (byte)((int)(Math.random() * 255.0D + 1.0D)); // L: 161
return false; // L: 162
}
NetCache.NetCache_crcMismatches = 0; // L: 164
NetCache.NetCache_ioExceptions = 0; // L: 165
class208.NetCache_currentResponse.archive.write((int)(class208.NetCache_currentResponse.key & 65535L), InterfaceParent.NetCache_responseArchiveBuffer.array, 16711680L == (class208.NetCache_currentResponse.key & 16711680L), NetSocket.field1498); // L: 166
}
class208.NetCache_currentResponse.remove(); // L: 168
if (NetSocket.field1498) { // L: 169
--NetCache.NetCache_pendingPriorityResponsesCount;
} else {
--NetCache.NetCache_pendingResponsesCount; // L: 170
}
NetCache.field3295 = 0; // L: 171
class208.NetCache_currentResponse = null; // L: 172
InterfaceParent.NetCache_responseArchiveBuffer = null; // L: 173
} else {
if (NetCache.field3295 != 512) { // L: 175
break;
}
NetCache.field3295 = 0;
}
}
}
return true; // L: 179
}
} catch (IOException var21) {
try {
class303.NetCache_socket.close(); // L: 183
} catch (Exception var19) { // L: 185
while (true) {
while (true) {
String var7 = var5.readLine(); // L: 81
if (var7 == null) { // L: 82
var1 = var1 + "| " + var6; // L: 100
return var1; // L: 101
}
++NetCache.NetCache_ioExceptions; // L: 186
class303.NetCache_socket = null; // L: 187
return false; // L: 188
int var8 = var7.indexOf(40); // L: 83
int var9 = var7.indexOf(41, var8 + 1); // L: 84
if (var8 >= 0 && var9 >= 0) { // L: 85
String var10 = var7.substring(var8 + 1, var9); // L: 86
int var11 = var10.indexOf(".java:"); // L: 87
if (var11 >= 0) { // L: 88
var10 = var10.substring(0, var11) + var10.substring(var11 + 5); // L: 89
var1 = var1 + var10 + ' '; // L: 90
continue; // L: 91
}
var7 = var7.substring(0, var8); // L: 93
}
var7 = var7.trim(); // L: 95
var7 = var7.substring(var7.lastIndexOf(32) + 1); // L: 96
var7 = var7.substring(var7.lastIndexOf(9) + 1); // L: 97
var1 = var1 + var7 + ' '; // L: 98
}
}
}
@ObfuscatedName("fz")
@ObfuscatedName("k")
@ObfuscatedSignature(
descriptor = "(I)V",
garbageValue = "1888854268"
descriptor = "(B)V",
garbageValue = "97"
)
static final void method3188() {
for (int var0 = 0; var0 < Client.npcCount; ++var0) { // L: 3289
int var1 = Client.npcIndices[var0]; // L: 3290
NPC var2 = Client.npcs[var1]; // L: 3291
if (var2 != null) { // L: 3292
class137.updateActorSequence(var2, var2.definition.size); // L: 3293
}
static void method3648() {
if (PrivateChatMode.loadWorlds()) { // L: 1546
Login.worldSelectOpen = true; // L: 1547
Login.worldSelectPage = 0; // L: 1548
Login.worldSelectPagesCount = 0; // L: 1549
}
} // L: 3296
} // L: 1551
@ObfuscatedName("kl")
@ObfuscatedName("ff")
@ObfuscatedSignature(
descriptor = "(IIIILoh;Lhh;S)V",
garbageValue = "4096"
descriptor = "(Liv;III)V",
garbageValue = "-991343714"
)
@Export("drawSpriteOnMinimap")
static final void drawSpriteOnMinimap(int var0, int var1, int var2, int var3, SpritePixels var4, SpriteMask var5) {
if (var4 != null) { // L: 11471
int var6 = Client.camAngleY & 2047; // L: 11472
int var7 = var3 * var3 + var2 * var2; // L: 11473
if (var7 <= 6400) { // L: 11474
int var8 = Rasterizer3D.Rasterizer3D_sine[var6]; // L: 11475
int var9 = Rasterizer3D.Rasterizer3D_cosine[var6]; // L: 11476
int var10 = var9 * var2 + var3 * var8 >> 16; // L: 11477
int var11 = var3 * var9 - var8 * var2 >> 16; // L: 11478
if (var7 > 2500) {
var4.method7056(var10 + var5.width / 2 - var4.width / 2, var5.height / 2 - var11 - var4.height / 2, var0, var1, var5.width, var5.height, var5.xStarts, var5.xWidths); // L: 11479
} else {
var4.drawTransBgAt(var0 + var10 + var5.width / 2 - var4.width / 2, var5.height / 2 + var1 - var11 - var4.height / 2); // L: 11480
@Export("checkIfMinimapClicked")
static final void checkIfMinimapClicked(Widget var0, int var1, int var2) {
if (Client.minimapState == 0 || Client.minimapState == 3) { // L: 3814
if (!Client.isMenuOpen && (MouseHandler.MouseHandler_lastButton == 1 || !class229.mouseCam && MouseHandler.MouseHandler_lastButton == 4)) { // L: 3815
SpriteMask var3 = var0.getSpriteMask(true); // L: 3816
if (var3 == null) { // L: 3817
return;
}
int var4 = MouseHandler.MouseHandler_lastPressedX - var1; // L: 3818
int var5 = MouseHandler.MouseHandler_lastPressedY - var2; // L: 3819
if (var3.contains(var4, var5)) { // L: 3820
var4 -= var3.width / 2; // L: 3821
var5 -= var3.height / 2; // L: 3822
int var6 = Client.camAngleY & 2047; // L: 3823
int var7 = Rasterizer3D.Rasterizer3D_sine[var6]; // L: 3824
int var8 = Rasterizer3D.Rasterizer3D_cosine[var6]; // L: 3825
int var9 = var7 * var5 + var4 * var8 >> 11; // L: 3826
int var10 = var5 * var8 - var7 * var4 >> 11; // L: 3827
int var11 = var9 + class35.localPlayer.x >> 7; // L: 3828
int var12 = class35.localPlayer.y - var10 >> 7; // L: 3829
PacketBufferNode var13 = HealthBarDefinition.getPacketBufferNode(ClientPacket.field2582, Client.packetWriter.isaacCipher); // L: 3831
var13.packetBuffer.writeByte(18); // L: 3832
var13.packetBuffer.method6610(KeyHandler.KeyHandler_pressedKeys[82] ? (KeyHandler.KeyHandler_pressedKeys[81] ? 2 : 1) : 0); // L: 3833
var13.packetBuffer.writeShort(var12 + Messages.baseY); // L: 3834
var13.packetBuffer.writeShort(var11 + JagexCache.baseX); // L: 3835
var13.packetBuffer.writeByte(var4); // L: 3836
var13.packetBuffer.writeByte(var5); // L: 3837
var13.packetBuffer.writeShort(Client.camAngleY); // L: 3838
var13.packetBuffer.writeByte(57); // L: 3839
var13.packetBuffer.writeByte(0); // L: 3840
var13.packetBuffer.writeByte(0); // L: 3841
var13.packetBuffer.writeByte(89); // L: 3842
var13.packetBuffer.writeShort(class35.localPlayer.x); // L: 3843
var13.packetBuffer.writeShort(class35.localPlayer.y); // L: 3844
var13.packetBuffer.writeByte(63); // L: 3845
Client.packetWriter.addNode(var13); // L: 3846
Client.destinationX = var11; // L: 3847
Client.destinationY = var12; // L: 3848
}
}
}
} // L: 11481
} // L: 3851
}