project: Revvvvvvvvvvvvv

This commit is contained in:
Owain van Brakel
2022-02-09 13:21:03 +01:00
parent e91fc1a16a
commit e505012bff
474 changed files with 69930 additions and 69430 deletions

View File

@@ -1,53 +1,60 @@
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InvalidClassException;
import java.io.ObjectInputStream;
import java.io.OptionalDataException;
import java.io.StreamCorruptedException;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
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;
import net.runelite.rs.Reflection;
@ObfuscatedName("ju")
@ObfuscatedName("jd")
@Implements("Coord")
public class Coord {
@ObfuscatedName("q")
@Export("operatingSystemName")
public static String operatingSystemName;
@ObfuscatedName("gu")
@ObfuscatedName("cb")
@ObfuscatedSignature(
descriptor = "Lmd;"
descriptor = "Lpg;"
)
static AbstractSocket field3186;
static IndexedSprite field3230;
@ObfuscatedName("c")
@ObfuscatedGetter(
intValue = 2028633895
intValue = -2109176433
)
@Export("plane")
public int plane;
@ObfuscatedName("b")
@ObfuscatedName("l")
@ObfuscatedGetter(
intValue = -115571391
intValue = -303974401
)
@Export("x")
public int x;
@ObfuscatedName("p")
@ObfuscatedName("s")
@ObfuscatedGetter(
intValue = -193761027
intValue = -1782461571
)
@Export("y")
public int y;
@ObfuscatedSignature(
descriptor = "(Lju;)V"
descriptor = "(Ljd;)V"
)
public Coord(Coord var1) {
this.plane = var1.plane;
this.x = var1.x;
this.y = var1.y;
}
this.plane = var1.plane; // L: 15
this.x = var1.x; // L: 16
this.y = var1.y; // L: 17
} // L: 18
public Coord(int var1, int var2, int var3) {
this.plane = var1;
this.x = var2;
this.y = var3;
}
this.plane = var1; // L: 9
this.x = var2; // L: 10
this.y = var3; // L: 11
} // L: 12
public Coord(int var1) {
if (var1 == -1) {
@@ -55,29 +62,25 @@ public class Coord {
} else {
this.plane = var1 >> 28 & 3;
this.x = var1 >> 14 & 16383;
this.y = var1 & 16383;
this.y = var1 & 16383; // L: 25
}
}
} // L: 27
@ObfuscatedName("c")
@ObfuscatedSignature(
descriptor = "(I)I",
garbageValue = "844590476"
descriptor = "(B)I",
garbageValue = "74"
)
@Export("packed")
public int packed() {
int var2 = this.plane;
int var3 = this.x;
int var4 = this.y;
int var1 = var2 << 28 | var3 << 14 | var4;
return var1;
return class134.method2825(this.plane, this.x, this.y); // L: 30
}
@ObfuscatedName("b")
@ObfuscatedName("s")
@ObfuscatedSignature(
descriptor = "(Lju;B)Z",
garbageValue = "-21"
descriptor = "(Ljd;B)Z",
garbageValue = "82"
)
@Export("equalsCoord")
boolean equalsCoord(Coord var1) {
@@ -90,16 +93,20 @@ public class Coord {
}
}
@ObfuscatedName("p")
@ObfuscatedName("e")
@ObfuscatedSignature(
descriptor = "(Ljava/lang/String;I)Ljava/lang/String;",
garbageValue = "1213799253"
garbageValue = "350893149"
)
@Export("toString")
String toString(String var1) {
return this.plane + var1 + (this.x >> 6) + var1 + (this.y >> 6) + var1 + (this.x & 63) + var1 + (this.y & 63);
}
public int hashCode() {
return this.packed();
}
public String toString() {
return this.toString(",");
}
@@ -112,7 +119,114 @@ public class Coord {
}
}
public int hashCode() {
return this.packed();
}
@ObfuscatedName("c")
@ObfuscatedSignature(
descriptor = "(II)V",
garbageValue = "983317329"
)
static void method5335(int var0) {
class371.field4240 = var0; // L: 21
class371.field4238 = new class371[var0]; // L: 22
class296.field3510 = 0; // L: 23
} // L: 24
@ObfuscatedName("s")
@ObfuscatedSignature(
descriptor = "(Lpc;I)V",
garbageValue = "461782949"
)
@Export("performReflectionCheck")
public static void performReflectionCheck(PacketBuffer var0) {
ReflectionCheck var1 = (ReflectionCheck)class33.reflectionChecks.last(); // L: 35
if (var1 != null) { // L: 36
int var2 = var0.offset; // L: 37
var0.writeInt(var1.id); // L: 38
for (int var3 = 0; var3 < var1.size; ++var3) { // L: 39
if (var1.creationErrors[var3] != 0) { // L: 40
var0.writeByte(var1.creationErrors[var3]); // L: 41
} else {
try {
int var4 = var1.operations[var3]; // L: 45
Field var5;
int var6;
if (var4 == 0) { // L: 46
var5 = var1.fields[var3]; // L: 47
var6 = Reflection.getInt(var5, (Object)null); // L: 48
var0.writeByte(0); // L: 49
var0.writeInt(var6); // L: 50
} else if (var4 == 1) { // L: 52
var5 = var1.fields[var3]; // L: 53
Reflection.setInt(var5, (Object)null, var1.intReplaceValues[var3]); // L: 54
var0.writeByte(0); // L: 55
} else if (var4 == 2) { // L: 57
var5 = var1.fields[var3]; // L: 58
var6 = var5.getModifiers(); // L: 59
var0.writeByte(0); // L: 60
var0.writeInt(var6); // L: 61
}
Method var25;
if (var4 != 3) { // L: 63
if (var4 == 4) { // L: 83
var25 = var1.methods[var3]; // L: 84
var6 = var25.getModifiers(); // L: 85
var0.writeByte(0); // L: 86
var0.writeInt(var6); // L: 87
}
} else {
var25 = var1.methods[var3]; // L: 64
byte[][] var10 = var1.arguments[var3]; // L: 65
Object[] var7 = new Object[var10.length]; // L: 66
for (int var8 = 0; var8 < var10.length; ++var8) { // L: 67
ObjectInputStream var9 = new ObjectInputStream(new ByteArrayInputStream(var10[var8])); // L: 68
var7[var8] = var9.readObject(); // L: 69
}
Object var11 = Reflection.invoke(var25, (Object)null, var7); // L: 71
if (var11 == null) { // L: 72
var0.writeByte(0);
} else if (var11 instanceof Number) { // L: 73
var0.writeByte(1); // L: 74
var0.writeLong(((Number)var11).longValue()); // L: 75
} else if (var11 instanceof String) { // L: 77
var0.writeByte(2); // L: 78
var0.writeStringCp1252NullTerminated((String)var11); // L: 79
} else {
var0.writeByte(4); // L: 81
}
}
} catch (ClassNotFoundException var13) { // L: 90
var0.writeByte(-10); // L: 91
} catch (InvalidClassException var14) { // L: 93
var0.writeByte(-11); // L: 94
} catch (StreamCorruptedException var15) { // L: 96
var0.writeByte(-12); // L: 97
} catch (OptionalDataException var16) { // L: 99
var0.writeByte(-13); // L: 100
} catch (IllegalAccessException var17) { // L: 102
var0.writeByte(-14); // L: 103
} catch (IllegalArgumentException var18) { // L: 105
var0.writeByte(-15); // L: 106
} catch (InvocationTargetException var19) { // L: 108
var0.writeByte(-16); // L: 109
} catch (SecurityException var20) { // L: 111
var0.writeByte(-17); // L: 112
} catch (IOException var21) { // L: 114
var0.writeByte(-18); // L: 115
} catch (NullPointerException var22) { // L: 117
var0.writeByte(-19); // L: 118
} catch (Exception var23) { // L: 120
var0.writeByte(-20); // L: 121
} catch (Throwable var24) { // L: 123
var0.writeByte(-21); // L: 124
}
}
}
var0.writeCrc(var2); // L: 127
var1.remove(); // L: 128
}
} // L: 129
}