Port Injector to main layout
Adds deobfuscator Adds injected-client Adds injector-plugin Adds runescape-client Replaces RL's apis Small bug with sprites atm, will be resolved soon. tired af. Builds, probably
This commit is contained in:
95
runescape-client/src/main/java/UserComparator4.java
Normal file
95
runescape-client/src/main/java/UserComparator4.java
Normal file
@@ -0,0 +1,95 @@
|
||||
import java.util.Comparator;
|
||||
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("ev")
|
||||
@Implements("UserComparator4")
|
||||
public class UserComparator4 implements Comparator {
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -112939189
|
||||
)
|
||||
@Export("WorldMapElement_count")
|
||||
public static int WorldMapElement_count;
|
||||
@ObfuscatedName("m")
|
||||
@Export("__m")
|
||||
final boolean __m;
|
||||
|
||||
public UserComparator4(boolean var1) {
|
||||
this.__m = var1;
|
||||
}
|
||||
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Lke;Lke;I)I",
|
||||
garbageValue = "950234237"
|
||||
)
|
||||
@Export("__m_261")
|
||||
int __m_261(Buddy var1, Buddy var2) {
|
||||
return this.__m?var1.int2 - var2.int2:var2.int2 - var1.int2;
|
||||
}
|
||||
|
||||
@Export("__equals_263")
|
||||
@ObfuscatedName("equals")
|
||||
public boolean __equals_263(Object var1) {
|
||||
return super.equals(var1);
|
||||
}
|
||||
|
||||
@Export("compare")
|
||||
@ObfuscatedName("compare")
|
||||
public int compare(Object var1, Object var2) {
|
||||
return this.__m_261((Buddy)var1, (Buddy)var2);
|
||||
}
|
||||
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Ljava/lang/CharSequence;I)Z",
|
||||
garbageValue = "725116015"
|
||||
)
|
||||
public static boolean method3336(CharSequence var0) {
|
||||
return class214.method4144(var0, 10, true);
|
||||
}
|
||||
|
||||
@ObfuscatedName("aw")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(ILcg;ZI)I",
|
||||
garbageValue = "-2050984400"
|
||||
)
|
||||
static int method3335(int var0, Script var1, boolean var2) {
|
||||
if(var0 == 5306) {
|
||||
Interpreter.Interpreter_intStack[++class179.Interpreter_intStackSize - 1] = SpotAnimationDefinition.method4822();
|
||||
return 1;
|
||||
} else {
|
||||
int var3;
|
||||
if(var0 == 5307) {
|
||||
var3 = Interpreter.Interpreter_intStack[--class179.Interpreter_intStackSize];
|
||||
if(var3 == 1 || var3 == 2) {
|
||||
GroundItem.method2095(var3);
|
||||
}
|
||||
|
||||
return 1;
|
||||
} else if(var0 == 5308) {
|
||||
Interpreter.Interpreter_intStack[++class179.Interpreter_intStackSize - 1] = ReflectionCheck.clientPreferences.windowMode;
|
||||
return 1;
|
||||
} else if(var0 != 5309) {
|
||||
if(var0 == 5310) {
|
||||
--class179.Interpreter_intStackSize;
|
||||
return 1;
|
||||
} else {
|
||||
return 2;
|
||||
}
|
||||
} else {
|
||||
var3 = Interpreter.Interpreter_intStack[--class179.Interpreter_intStackSize];
|
||||
if(var3 == 1 || var3 == 2) {
|
||||
ReflectionCheck.clientPreferences.windowMode = var3;
|
||||
WorldMapSection0.method247();
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user