Even more... you guessed it! REFACTORING. Removes the need for @Export for methods overriding base java methods

This commit is contained in:
Lucas
2019-07-07 21:30:17 +02:00
parent e2aac6d899
commit 83533475d4
116 changed files with 802 additions and 752 deletions

View File

@@ -20,9 +20,9 @@ public class Friend extends Buddy {
signature = "(Lkq;I)I",
garbageValue = "-1559116693"
)
@Export("compareTo00")
int compareTo00(Friend other) {
return super.world0 == Client.worldId && Client.worldId != other.world0 ? -1 : (Client.worldId == other.world0 && super.world0 != Client.worldId ? 1 : (super.world0 != 0 && other.world0 == 0 ? -1 : (other.world0 != 0 && super.world0 == 0 ? 1 : (this.field354 && !other.field354 ? -1 : (!this.field354 && other.field354 ? 1 : (this.field355 && !other.field355 ? -1 : (!this.field355 && other.field355 ? 1 : (super.world0 != 0 ? super.int2 - other.int2 : other.int2 - super.int2))))))));
@Export("compareToFriend")
int compareToFriend(Friend other) {
return super.world == Client.worldId && Client.worldId != other.world ? -1 : (Client.worldId == other.world && super.world != Client.worldId ? 1 : (super.world != 0 && other.world == 0 ? -1 : (other.world != 0 && super.world == 0 ? 1 : (this.field354 && !other.field354 ? -1 : (!this.field354 && other.field354 ? 1 : (this.field355 && !other.field355 ? -1 : (!this.field355 && other.field355 ? 1 : (super.world != 0 ? super.int2 - other.int2 : other.int2 - super.int2))))))));
}
@ObfuscatedName("aj")
@@ -30,12 +30,12 @@ public class Friend extends Buddy {
signature = "(Ljs;I)I",
garbageValue = "1627362569"
)
public int compareTo0(User var1) {
return this.compareTo00((Friend)var1);
@Export("compareToUser")
public int compareToUser(User var1) {
return this.compareToFriend((Friend)var1);
}
@ObfuscatedName("compareTo")
public int compareTo(Object var1) {
return this.compareTo00((Friend)var1);
return this.compareToFriend((Friend)var1);
}
}