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

@@ -67,8 +67,8 @@ public class Coord {
signature = "(Lhu;B)Z",
garbageValue = "-1"
)
@Export("equals0")
boolean equals0(Coord other) {
@Export("equalsCoord")
boolean equalsCoord(Coord other) {
return this.plane != other.plane ? false : (this.x != other.x ? false : this.y == other.y);
}
@@ -77,23 +77,20 @@ public class Coord {
signature = "(Ljava/lang/String;I)Ljava/lang/String;",
garbageValue = "997364398"
)
@Export("toString0")
String toString0(String separator) {
@Export("toString")
String toString(String separator) {
return this.plane + separator + (this.x >> 6) + separator + (this.y >> 6) + separator + (this.x & 63) + separator + (this.y & 63);
}
@ObfuscatedName("equals")
public boolean method326(Object var1) {
return this == var1 ? true : (!(var1 instanceof Coord) ? false : this.equals0((Coord)var1));
public boolean equals(Object var1) {
return this == var1 ? true : (!(var1 instanceof Coord) ? false : this.equalsCoord((Coord)var1));
}
@ObfuscatedName("hashCode")
public int method327() {
public int hashCode() {
return this.packed();
}
@ObfuscatedName("toString")
public String method328() {
return this.toString0(",");
public String toString() {
return this.toString(",");
}
}