client: rev 201

This commit is contained in:
Justin
2021-11-03 22:50:34 +11:00
parent af21d0e050
commit bcc8072751
425 changed files with 65165 additions and 65696 deletions

View File

@@ -1,147 +1,126 @@
import java.net.MalformedURLException;
import java.net.URL;
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("kp")
@ObfuscatedName("kh")
@Implements("GrandExchangeOffer")
public class GrandExchangeOffer {
@ObfuscatedName("l")
@ObfuscatedName("i")
@Export("state")
byte state;
@ObfuscatedName("q")
@ObfuscatedName("w")
@ObfuscatedGetter(
intValue = 1281987013
intValue = 174142221
)
@Export("id")
public int id;
@ObfuscatedName("f")
@ObfuscatedName("s")
@ObfuscatedGetter(
intValue = -552663155
intValue = -2013850227
)
@Export("unitPrice")
public int unitPrice;
@ObfuscatedName("j")
@ObfuscatedName("a")
@ObfuscatedGetter(
intValue = -1035394057
intValue = 1123785695
)
@Export("totalQuantity")
public int totalQuantity;
@ObfuscatedName("m")
@ObfuscatedName("o")
@ObfuscatedGetter(
intValue = 8664505
intValue = -1874435099
)
@Export("currentQuantity")
public int currentQuantity;
@ObfuscatedName("k")
@ObfuscatedName("g")
@ObfuscatedGetter(
intValue = 1081967489
intValue = 185412579
)
@Export("currentPrice")
public int currentPrice;
public GrandExchangeOffer() {
}
} // L: 13
@ObfuscatedSignature(
descriptor = "(Lot;Z)V",
descriptor = "(Lop;Z)V",
garbageValue = "0"
)
public GrandExchangeOffer(Buffer var1, boolean var2) {
this.state = var1.readByte();
this.id = var1.readUnsignedShort();
this.unitPrice = var1.readInt();
this.totalQuantity = var1.readInt();
this.currentQuantity = var1.readInt();
this.currentPrice = var1.readInt();
}
this.state = var1.readByte(); // L: 16
this.id = var1.readUnsignedShort(); // L: 17
this.unitPrice = var1.readInt(); // L: 18
this.totalQuantity = var1.readInt(); // L: 19
this.currentQuantity = var1.readInt(); // L: 20
this.currentPrice = var1.readInt(); // L: 21
} // L: 22
@ObfuscatedName("f")
@ObfuscatedName("s")
@ObfuscatedSignature(
descriptor = "(I)I",
garbageValue = "-756750295"
garbageValue = "857978313"
)
@Export("status")
public int status() {
return this.state & 7;
}
@ObfuscatedName("j")
@ObfuscatedName("a")
@ObfuscatedSignature(
descriptor = "(I)I",
garbageValue = "2063429375"
garbageValue = "1294725733"
)
@Export("type")
public int type() {
return (this.state & 8) == 8 ? 1 : 0;
return (this.state & 8) == 8 ? 1 : 0; // L: 54
}
@ObfuscatedName("m")
@ObfuscatedName("o")
@ObfuscatedSignature(
descriptor = "(II)V",
garbageValue = "1077740822"
garbageValue = "-39336237"
)
void method5407(int var1) {
this.state &= -8;
void method5454(int var1) {
this.state &= -8; // L: 58
this.state = (byte)(this.state | var1 & 7);
}
} // L: 60
@ObfuscatedName("k")
@ObfuscatedName("g")
@ObfuscatedSignature(
descriptor = "(IB)V",
garbageValue = "-33"
)
void method5455(int var1) {
this.state &= -9; // L: 63
if (var1 == 1) {
this.state = (byte)(this.state | 8); // L: 64
}
} // L: 65
@ObfuscatedName("w")
@ObfuscatedSignature(
descriptor = "(CB)Z",
garbageValue = "0"
)
void method5405(int var1) {
this.state &= -9;
if (var1 == 1) {
this.state = (byte)(this.state | 8);
}
}
@ObfuscatedName("q")
@ObfuscatedSignature(
descriptor = "(Ljava/lang/String;I)Z",
garbageValue = "1182126654"
)
static boolean method5406(String var0) {
if (var0 == null) {
return false;
public static boolean method5473(char var0) {
if (var0 >= ' ' && var0 < 127 || var0 > 127 && var0 < 160 || var0 > 160 && var0 <= 255) { // L: 45
return true;
} else {
try {
new URL(var0);
return true;
} catch (MalformedURLException var2) {
return false;
if (var0 != 0) { // L: 46
char[] var1 = class316.cp1252AsciiExtension; // L: 48
for (int var2 = 0; var2 < var1.length; ++var2) { // L: 49
char var3 = var1[var2]; // L: 50
if (var0 == var3) { // L: 52
return true; // L: 53
}
}
}
return false; // L: 59
}
}
@ObfuscatedName("le")
@ObfuscatedSignature(
descriptor = "(I)V",
garbageValue = "-26148798"
)
static void method5422() {
if (Client.field573 && class67.localPlayer != null) {
int var0 = class67.localPlayer.pathX[0];
int var1 = class67.localPlayer.pathY[0];
if (var0 < 0 || var1 < 0 || var0 >= 104 || var1 >= 104) {
return;
}
class132.oculusOrbFocalPointX = class67.localPlayer.x;
int var2 = MidiPcmStream.getTileHeight(class67.localPlayer.x, class67.localPlayer.y, VertexNormal.Client_plane) - Client.camFollowHeight;
if (var2 < class194.field2186) {
class194.field2186 = var2;
}
LoginScreenAnimation.oculusOrbFocalPointY = class67.localPlayer.y;
Client.field573 = false;
}
}
}