Merge remote-tracking branch 'upstream/master' into master

Nice insider info btw, be nice if you shared it, so-called "open source" client.
This commit is contained in:
ThatGamerBlue
2021-05-28 21:39:25 +01:00
481 changed files with 53410 additions and 51723 deletions

View File

@@ -5,29 +5,26 @@ import net.runelite.mapping.Implements;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("lp")
@ObfuscatedName("lg")
@Implements("BufferedNetSocket")
public class BufferedNetSocket extends AbstractSocket {
@ObfuscatedName("v")
@Export("ItemDefinition_inMembersWorld")
static boolean ItemDefinition_inMembersWorld;
@ObfuscatedName("h")
@Export("socket")
Socket socket;
@ObfuscatedName("c")
@ObfuscatedName("n")
@ObfuscatedSignature(
descriptor = "Lld;"
descriptor = "Llw;"
)
@Export("source")
BufferedSource source;
@ObfuscatedName("o")
@ObfuscatedName("f")
@ObfuscatedSignature(
descriptor = "Lly;"
descriptor = "Lle;"
)
@Export("sink")
BufferedSink sink;
BufferedNetSocket(Socket var1, int var2, int var3) throws IOException {
public BufferedNetSocket(Socket var1, int var2, int var3) throws IOException {
this.socket = var1; // L: 12
this.socket.setSoTimeout(30000); // L: 13
this.socket.setTcpNoDelay(true); // L: 14
@@ -37,110 +34,74 @@ public class BufferedNetSocket extends AbstractSocket {
this.sink = new BufferedSink(this.socket.getOutputStream(), var3); // L: 18
} // L: 19
@ObfuscatedName("h")
@ObfuscatedName("v")
@ObfuscatedSignature(
descriptor = "(B)V",
garbageValue = "-36"
descriptor = "(I)V",
garbageValue = "1654713390"
)
@Export("close")
public void close() {
this.sink.close();
this.sink.close(); // L: 42
try {
this.socket.close();
} catch (IOException var2) {
this.socket.close(); // L: 44
} catch (IOException var2) { // L: 46
}
this.source.close();
}
this.source.close(); // L: 47
} // L: 48
@ObfuscatedName("c")
@ObfuscatedName("n")
@ObfuscatedSignature(
descriptor = "(I)I",
garbageValue = "-2027143758"
garbageValue = "479468921"
)
@Export("readUnsignedByte")
public int readUnsignedByte() throws IOException {
return this.source.readUnsignedByte(); // L: 30
}
@ObfuscatedName("o")
@ObfuscatedName("f")
@ObfuscatedSignature(
descriptor = "(I)I",
garbageValue = "-640327653"
garbageValue = "1659206769"
)
@Export("available")
public int available() throws IOException {
return this.source.available(); // L: 26
}
@ObfuscatedName("g")
@ObfuscatedName("y")
@ObfuscatedSignature(
descriptor = "(II)Z",
garbageValue = "-1880004365"
garbageValue = "-211935081"
)
@Export("isAvailable")
public boolean isAvailable(int var1) throws IOException {
return this.source.isAvailable(var1); // L: 22
}
@ObfuscatedName("l")
@ObfuscatedName("p")
@ObfuscatedSignature(
descriptor = "([BIII)I",
garbageValue = "-1936066161"
garbageValue = "-2041736219"
)
@Export("read")
public int read(byte[] var1, int var2, int var3) throws IOException {
return this.source.read(var1, var2, var3); // L: 34
}
@ObfuscatedName("t")
@ObfuscatedName("r")
@ObfuscatedSignature(
descriptor = "([BIII)V",
garbageValue = "1752522959"
garbageValue = "263213011"
)
@Export("write")
public void write(byte[] var1, int var2, int var3) throws IOException {
this.sink.write(var1, var2, var3); // L: 38
}
} // L: 39
protected void finalize() {
this.close();
}
@ObfuscatedName("g")
@ObfuscatedSignature(
descriptor = "(IIIII)V",
garbageValue = "1689772773"
)
@Export("itemContainerSetItem")
static void itemContainerSetItem(int var0, int var1, int var2, int var3) {
ItemContainer var4 = (ItemContainer)ItemContainer.itemContainers.get((long)var0); // L: 39
if (var4 == null) { // L: 40
var4 = new ItemContainer(); // L: 41
ItemContainer.itemContainers.put(var4, (long)var0); // L: 42
}
if (var4.ids.length <= var1) { // L: 44
int[] var5 = new int[var1 + 1]; // L: 45
int[] var6 = new int[var1 + 1]; // L: 46
int var7;
for (var7 = 0; var7 < var4.ids.length; ++var7) { // L: 47
var5[var7] = var4.ids[var7]; // L: 48
var6[var7] = var4.quantities[var7]; // L: 49
}
for (var7 = var4.ids.length; var7 < var1; ++var7) { // L: 51
var5[var7] = -1; // L: 52
var6[var7] = 0; // L: 53
}
var4.ids = var5; // L: 55
var4.quantities = var6; // L: 56
}
var4.ids[var1] = var2; // L: 58
var4.quantities[var1] = var3; // L: 59
} // L: 60
this.close(); // L: 51
} // L: 52
}