Files
runelite/runescape-client/src/main/java/Coord.java
2021-11-03 22:50:34 +11:00

131 lines
2.9 KiB
Java

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("ie")
@Implements("Coord")
public class Coord {
@ObfuscatedName("i")
@ObfuscatedGetter(
intValue = 530097433
)
@Export("plane")
public int plane;
@ObfuscatedName("w")
@ObfuscatedGetter(
intValue = 780251377
)
@Export("x")
public int x;
@ObfuscatedName("s")
@ObfuscatedGetter(
intValue = 1509887785
)
@Export("y")
public int y;
@ObfuscatedSignature(
descriptor = "(Lie;)V"
)
public Coord(Coord var1) {
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; // L: 9
this.x = var2; // L: 10
this.y = var3; // L: 11
} // L: 12
public Coord(int var1) {
if (var1 == -1) { // L: 21
this.plane = -1;
} else {
this.plane = var1 >> 28 & 3; // L: 23
this.x = var1 >> 14 & 16383; // L: 24
this.y = var1 & 16383; // L: 25
}
} // L: 27
@ObfuscatedName("i")
@ObfuscatedSignature(
descriptor = "(I)I",
garbageValue = "-1761065408"
)
@Export("packed")
public int packed() {
int var2 = this.plane; // L: 31
int var3 = this.x; // L: 32
int var4 = this.y; // L: 33
int var1 = var2 << 28 | var3 << 14 | var4; // L: 35
return var1; // L: 37
}
@ObfuscatedName("w")
@ObfuscatedSignature(
descriptor = "(Lie;I)Z",
garbageValue = "-1713093595"
)
@Export("equalsCoord")
boolean equalsCoord(Coord var1) {
if (this.plane != var1.plane) { // L: 47
return false;
} else if (this.x != var1.x) { // L: 48
return false;
} else {
return this.y == var1.y; // L: 49
}
}
@ObfuscatedName("s")
@ObfuscatedSignature(
descriptor = "(Ljava/lang/String;I)Ljava/lang/String;",
garbageValue = "-492056812"
)
@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); // L: 62
}
public int hashCode() {
return this.packed();
}
public boolean equals(Object var1) {
if (this == var1) { // L: 41
return true;
} else {
return !(var1 instanceof Coord) ? false : this.equalsCoord((Coord)var1); // L: 42 43
}
}
public String toString() {
return this.toString(","); // L: 58
}
@ObfuscatedName("s")
@ObfuscatedSignature(
descriptor = "(B)V",
garbageValue = "-65"
)
public static void method5011() {
while (true) {
ArchiveDiskAction var0;
synchronized(ArchiveDiskActionHandler.ArchiveDiskActionHandler_requestQueue) { // L: 50
var0 = (ArchiveDiskAction)ArchiveDiskActionHandler.ArchiveDiskActionHandler_responseQueue.removeLast(); // L: 51
} // L: 52
if (var0 == null) { // L: 53
return;
}
var0.archive.load(var0.archiveDisk, (int)var0.key, var0.data, false); // L: 54
}
}
}