client: rev 198 (#3014)

* client: rev 198

* client: checkstyle

Co-authored-by: therealnull <therealnull@gmail.com>
This commit is contained in:
Tyler Bochard
2021-07-28 07:24:38 -04:00
committed by GitHub
parent c2af17f765
commit 56ae122b89
466 changed files with 65937 additions and 65851 deletions

View File

@@ -1,3 +1,4 @@
import java.io.IOException;
import net.runelite.mapping.Export;
import net.runelite.mapping.Implements;
import net.runelite.mapping.ObfuscatedGetter;
@@ -5,291 +6,226 @@ import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
import net.runelite.rs.ScriptOpcodes;
@ObfuscatedName("ex")
@ObfuscatedName("el")
@Implements("InvDefinition")
public class InvDefinition extends DualNode {
@ObfuscatedName("f")
@ObfuscatedName("s")
@ObfuscatedSignature(
descriptor = "Ljp;"
descriptor = "Ljy;"
)
@Export("InvDefinition_archive")
public static AbstractArchive InvDefinition_archive;
@ObfuscatedName("e")
static AbstractArchive InvDefinition_archive;
@ObfuscatedName("t")
@ObfuscatedSignature(
descriptor = "Lht;"
descriptor = "Lhw;"
)
@Export("InvDefinition_cached")
static EvictingDualNodeHashTable InvDefinition_cached;
@ObfuscatedName("o")
@ObfuscatedName("di")
@ObfuscatedSignature(
descriptor = "Ljp;"
descriptor = "Ljs;"
)
@Export("musicTrackArchive")
static AbstractArchive musicTrackArchive;
@ObfuscatedName("al")
@Export("null_string")
protected static String null_string;
@Export("archive4")
static Archive archive4;
@ObfuscatedName("v")
@ObfuscatedGetter(
intValue = -1449643111
intValue = 1729666439
)
@Export("size")
public int size;
static {
InvDefinition_cached = new EvictingDualNodeHashTable(64); // L: 11
InvDefinition_cached = new EvictingDualNodeHashTable(64);
}
InvDefinition() {
this.size = 0; // L: 12
} // L: 14
@ObfuscatedName("e")
@ObfuscatedSignature(
descriptor = "(Lnt;I)V",
garbageValue = "1281514365"
)
@Export("decode")
void decode(Buffer var1) {
while (true) {
int var2 = var1.readUnsignedByte(); // L: 28
if (var2 == 0) { // L: 29
return; // L: 32
}
this.decodeNext(var1, var2); // L: 30
}
this.size = 0;
}
@ObfuscatedName("v")
@ObfuscatedSignature(
descriptor = "(Lnt;IS)V",
garbageValue = "-25465"
descriptor = "(Lnv;I)V",
garbageValue = "-939191311"
)
@Export("decodeNext")
void decodeNext(Buffer var1, int var2) {
if (var2 == 2) { // L: 35
this.size = var1.readUnsignedShort();
}
} // L: 37
@ObfuscatedName("o")
@ObfuscatedSignature(
descriptor = "(ILcf;ZI)I",
garbageValue = "1727698961"
)
static int method2699(int var0, Script var1, boolean var2) {
int var4 = -1; // L: 616
Widget var3;
if (var0 >= 2000) { // L: 617
var0 -= 1000; // L: 618
var4 = Interpreter.Interpreter_intStack[--ChatChannel.Interpreter_intStackSize]; // L: 619
var3 = WorldMapData_1.getWidget(var4); // L: 620
} else {
var3 = var2 ? UserComparator5.scriptDotWidget : User.scriptActiveWidget; // L: 622
}
if (var0 == ScriptOpcodes.CC_SETSCROLLPOS) { // L: 623
ChatChannel.Interpreter_intStackSize -= 2; // L: 624
var3.scrollX = Interpreter.Interpreter_intStack[ChatChannel.Interpreter_intStackSize]; // L: 625
if (var3.scrollX > var3.scrollWidth - var3.width) { // L: 626
var3.scrollX = var3.scrollWidth - var3.width;
@Export("decode")
void decode(Buffer var1) {
while (true) {
int var2 = var1.readUnsignedByte();
if (var2 == 0) {
return;
}
if (var3.scrollX < 0) { // L: 627
var3.scrollX = 0;
}
var3.scrollY = Interpreter.Interpreter_intStack[ChatChannel.Interpreter_intStackSize + 1]; // L: 628
if (var3.scrollY > var3.scrollHeight - var3.height) { // L: 629
var3.scrollY = var3.scrollHeight - var3.height;
}
if (var3.scrollY < 0) { // L: 630
var3.scrollY = 0;
}
Script.invalidateWidget(var3); // L: 631
return 1; // L: 632
} else if (var0 == ScriptOpcodes.CC_SETCOLOUR) { // L: 634
var3.color = Interpreter.Interpreter_intStack[--ChatChannel.Interpreter_intStackSize]; // L: 635
Script.invalidateWidget(var3); // L: 636
return 1; // L: 637
} else if (var0 == ScriptOpcodes.CC_SETFILL) { // L: 639
var3.fill = Interpreter.Interpreter_intStack[--ChatChannel.Interpreter_intStackSize] == 1; // L: 640
Script.invalidateWidget(var3); // L: 641
return 1; // L: 642
} else if (var0 == ScriptOpcodes.CC_SETTRANS) { // L: 644
var3.transparencyTop = Interpreter.Interpreter_intStack[--ChatChannel.Interpreter_intStackSize]; // L: 645
Script.invalidateWidget(var3); // L: 646
return 1; // L: 647
} else if (var0 == ScriptOpcodes.CC_SETLINEWID) { // L: 649
var3.lineWid = Interpreter.Interpreter_intStack[--ChatChannel.Interpreter_intStackSize]; // L: 650
Script.invalidateWidget(var3); // L: 651
return 1; // L: 652
} else if (var0 == ScriptOpcodes.CC_SETGRAPHIC) { // L: 654
var3.spriteId2 = Interpreter.Interpreter_intStack[--ChatChannel.Interpreter_intStackSize]; // L: 655
Script.invalidateWidget(var3); // L: 656
return 1; // L: 657
} else if (var0 == ScriptOpcodes.CC_SET2DANGLE) { // L: 659
var3.spriteAngle = Interpreter.Interpreter_intStack[--ChatChannel.Interpreter_intStackSize]; // L: 660
Script.invalidateWidget(var3); // L: 661
return 1; // L: 662
} else if (var0 == ScriptOpcodes.CC_SETTILING) { // L: 664
var3.spriteTiling = Interpreter.Interpreter_intStack[--ChatChannel.Interpreter_intStackSize] == 1; // L: 665
Script.invalidateWidget(var3); // L: 666
return 1; // L: 667
} else if (var0 == ScriptOpcodes.CC_SETMODEL) { // L: 669
var3.modelType = 1; // L: 670
var3.modelId = Interpreter.Interpreter_intStack[--ChatChannel.Interpreter_intStackSize]; // L: 671
Script.invalidateWidget(var3); // L: 672
return 1; // L: 673
} else if (var0 == ScriptOpcodes.CC_SETMODELANGLE) { // L: 675
ChatChannel.Interpreter_intStackSize -= 6; // L: 676
var3.modelOffsetX = Interpreter.Interpreter_intStack[ChatChannel.Interpreter_intStackSize]; // L: 677
var3.modelOffsetY = Interpreter.Interpreter_intStack[ChatChannel.Interpreter_intStackSize + 1]; // L: 678
var3.modelAngleX = Interpreter.Interpreter_intStack[ChatChannel.Interpreter_intStackSize + 2]; // L: 679
var3.modelAngleY = Interpreter.Interpreter_intStack[ChatChannel.Interpreter_intStackSize + 3]; // L: 680
var3.modelAngleZ = Interpreter.Interpreter_intStack[ChatChannel.Interpreter_intStackSize + 4]; // L: 681
var3.modelZoom = Interpreter.Interpreter_intStack[ChatChannel.Interpreter_intStackSize + 5]; // L: 682
Script.invalidateWidget(var3); // L: 683
return 1; // L: 684
} else {
int var8;
if (var0 == ScriptOpcodes.CC_SETMODELANIM) { // L: 686
var8 = Interpreter.Interpreter_intStack[--ChatChannel.Interpreter_intStackSize]; // L: 687
if (var8 != var3.sequenceId) { // L: 688
var3.sequenceId = var8; // L: 689
var3.modelFrame = 0; // L: 690
var3.modelFrameCycle = 0; // L: 691
Script.invalidateWidget(var3); // L: 692
}
return 1; // L: 694
} else if (var0 == ScriptOpcodes.CC_SETMODELORTHOG) { // L: 696
var3.modelOrthog = Interpreter.Interpreter_intStack[--ChatChannel.Interpreter_intStackSize] == 1; // L: 697
Script.invalidateWidget(var3); // L: 698
return 1; // L: 699
} else if (var0 == ScriptOpcodes.CC_SETTEXT) { // L: 701
String var7 = Interpreter.Interpreter_stringStack[--UserComparator9.Interpreter_stringStackSize]; // L: 702
if (!var7.equals(var3.text)) { // L: 703
var3.text = var7; // L: 704
Script.invalidateWidget(var3); // L: 705
}
return 1; // L: 707
} else if (var0 == ScriptOpcodes.CC_SETTEXTFONT) { // L: 709
var3.fontId = Interpreter.Interpreter_intStack[--ChatChannel.Interpreter_intStackSize]; // L: 710
Script.invalidateWidget(var3); // L: 711
return 1; // L: 712
} else if (var0 == ScriptOpcodes.CC_SETTEXTALIGN) { // L: 714
ChatChannel.Interpreter_intStackSize -= 3; // L: 715
var3.textXAlignment = Interpreter.Interpreter_intStack[ChatChannel.Interpreter_intStackSize]; // L: 716
var3.textYAlignment = Interpreter.Interpreter_intStack[ChatChannel.Interpreter_intStackSize + 1]; // L: 717
var3.textLineHeight = Interpreter.Interpreter_intStack[ChatChannel.Interpreter_intStackSize + 2]; // L: 718
Script.invalidateWidget(var3); // L: 719
return 1; // L: 720
} else if (var0 == ScriptOpcodes.CC_SETTEXTSHADOW) { // L: 722
var3.textShadowed = Interpreter.Interpreter_intStack[--ChatChannel.Interpreter_intStackSize] == 1; // L: 723
Script.invalidateWidget(var3); // L: 724
return 1; // L: 725
} else if (var0 == ScriptOpcodes.CC_SETOUTLINE) { // L: 727
var3.outline = Interpreter.Interpreter_intStack[--ChatChannel.Interpreter_intStackSize]; // L: 728
Script.invalidateWidget(var3); // L: 729
return 1; // L: 730
} else if (var0 == ScriptOpcodes.CC_SETGRAPHICSHADOW) { // L: 732
var3.spriteShadow = Interpreter.Interpreter_intStack[--ChatChannel.Interpreter_intStackSize]; // L: 733
Script.invalidateWidget(var3); // L: 734
return 1; // L: 735
} else if (var0 == ScriptOpcodes.CC_SETVFLIP) { // L: 737
var3.spriteFlipV = Interpreter.Interpreter_intStack[--ChatChannel.Interpreter_intStackSize] == 1; // L: 738
Script.invalidateWidget(var3); // L: 739
return 1; // L: 740
} else if (var0 == ScriptOpcodes.CC_SETHFLIP) { // L: 742
var3.spriteFlipH = Interpreter.Interpreter_intStack[--ChatChannel.Interpreter_intStackSize] == 1; // L: 743
Script.invalidateWidget(var3); // L: 744
return 1; // L: 745
} else if (var0 == ScriptOpcodes.CC_SETSCROLLSIZE) { // L: 747
ChatChannel.Interpreter_intStackSize -= 2; // L: 748
var3.scrollWidth = Interpreter.Interpreter_intStack[ChatChannel.Interpreter_intStackSize]; // L: 749
var3.scrollHeight = Interpreter.Interpreter_intStack[ChatChannel.Interpreter_intStackSize + 1]; // L: 750
Script.invalidateWidget(var3); // L: 751
if (var4 != -1 && var3.type == 0) { // L: 752
WorldMapLabelSize.revalidateWidgetScroll(GrandExchangeOfferOwnWorldComparator.Widget_interfaceComponents[var4 >> 16], var3, false);
}
return 1; // L: 753
} else if (var0 == ScriptOpcodes.CC_RESUME_PAUSEBUTTON) { // L: 755
ClanChannelMember.resumePauseWidget(var3.id, var3.childIndex); // L: 756
Client.meslayerContinueWidget = var3; // L: 757
Script.invalidateWidget(var3); // L: 758
return 1; // L: 759
} else if (var0 == 1122) { // L: 761
var3.spriteId = Interpreter.Interpreter_intStack[--ChatChannel.Interpreter_intStackSize]; // L: 762
Script.invalidateWidget(var3); // L: 763
return 1; // L: 764
} else if (var0 == ScriptOpcodes.CC_SETFILLCOLOUR) { // L: 766
var3.color2 = Interpreter.Interpreter_intStack[--ChatChannel.Interpreter_intStackSize]; // L: 767
Script.invalidateWidget(var3); // L: 768
return 1; // L: 769
} else if (var0 == 1124) { // L: 771
var3.transparencyBot = Interpreter.Interpreter_intStack[--ChatChannel.Interpreter_intStackSize]; // L: 772
Script.invalidateWidget(var3); // L: 773
return 1; // L: 774
} else if (var0 == 1125) { // L: 776
var8 = Interpreter.Interpreter_intStack[--ChatChannel.Interpreter_intStackSize]; // L: 777
FillMode var6 = (FillMode)Clock.findEnumerated(GrandExchangeEvent.FillMode_values(), var8); // L: 778
if (var6 != null) { // L: 779
var3.fillMode = var6; // L: 780
Script.invalidateWidget(var3); // L: 781
}
return 1; // L: 783
} else {
boolean var5;
if (var0 == ScriptOpcodes.CC_SETLINEDIRECTION) { // L: 785
var5 = Interpreter.Interpreter_intStack[--ChatChannel.Interpreter_intStackSize] == 1; // L: 786
var3.field2994 = var5; // L: 787
return 1; // L: 788
} else if (var0 == ScriptOpcodes.CC_SETMODELTRANSPARENT) { // L: 790
var5 = Interpreter.Interpreter_intStack[--ChatChannel.Interpreter_intStackSize] == 1; // L: 791
var3.modelTransparency = var5; // L: 792
return 1; // L: 793
} else if (var0 == 1128) { // L: 795
ChatChannel.Interpreter_intStackSize -= 2; // L: 796
return 1; // L: 797
} else {
return 2; // L: 799
}
}
this.decodeNext(var1, var2);
}
}
@ObfuscatedName("ks")
@ObfuscatedName("j")
@ObfuscatedSignature(
descriptor = "(Lci;ZB)V",
garbageValue = "16"
descriptor = "(Lnv;II)V",
garbageValue = "1818996957"
)
@Export("closeInterface")
static final void closeInterface(InterfaceParent var0, boolean var1) {
int var2 = var0.group; // L: 11273
int var3 = (int)var0.key; // L: 11274
var0.remove(); // L: 11275
if (var1) { // L: 11276
class44.method540(var2);
@Export("decodeNext")
void decodeNext(Buffer var1, int var2) {
if (var2 == 2) {
this.size = var1.readUnsignedShort();
}
class10.method113(var2); // L: 11277
Widget var4 = WorldMapData_1.getWidget(var3); // L: 11278
if (var4 != null) { // L: 11279
Script.invalidateWidget(var4);
}
@ObfuscatedName("t")
@ObfuscatedSignature(
descriptor = "(Ljava/lang/String;ZZB)V",
garbageValue = "-91"
)
@Export("openURL")
public static void openURL(String var0, boolean var1, boolean var2) {
class41.method846(var0, var1, "openjs", var2);
}
@ObfuscatedName("l")
@ObfuscatedSignature(
descriptor = "(I)[B",
garbageValue = "2047506505"
)
public static byte[] method2698() {
byte[] var0 = new byte[24];
try {
JagexCache.JagexCache_randomDat.seek(0L);
JagexCache.JagexCache_randomDat.readFully(var0);
int var1;
for (var1 = 0; var1 < 24 && var0[var1] == 0; ++var1) {
}
if (var1 >= 24) {
throw new IOException();
}
} catch (Exception var4) {
for (int var2 = 0; var2 < 24; ++var2) {
var0[var2] = -1;
}
}
WorldMapScaleHandler.method3856(); // L: 11280
if (Client.rootInterface != -1) { // L: 11281
class8.runIntfCloseListeners(Client.rootInterface, 1);
return var0;
}
@ObfuscatedName("p")
@ObfuscatedSignature(
descriptor = "(ILbd;ZI)I",
garbageValue = "1888273564"
)
static int method2691(int var0, Script var1, boolean var2) {
Widget var3;
if (var0 >= 2000) {
var0 -= 1000;
var3 = UrlRequester.getWidget(Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize]);
} else {
var3 = var2 ? GrandExchangeOffer.scriptDotWidget : Interpreter.scriptActiveWidget;
}
} // L: 11282
String var4 = Interpreter.Interpreter_stringStack[--class1.Interpreter_stringStackSize];
int[] var5 = null;
if (var4.length() > 0 && var4.charAt(var4.length() - 1) == 'Y') {
int var6 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize];
if (var6 > 0) {
for (var5 = new int[var6]; var6-- > 0; var5[var6] = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize]) {
}
}
var4 = var4.substring(0, var4.length() - 1);
}
Object[] var8 = new Object[var4.length() + 1];
int var7;
for (var7 = var8.length - 1; var7 >= 1; --var7) {
if (var4.charAt(var7 - 1) == 's') {
var8[var7] = Interpreter.Interpreter_stringStack[--class1.Interpreter_stringStackSize];
} else {
var8[var7] = new Integer(Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize]);
}
}
var7 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize];
if (var7 != -1) {
var8[0] = new Integer(var7);
} else {
var8 = null;
}
if (var0 == ScriptOpcodes.CC_SETONCLICK) {
var3.onClick = var8;
} else if (var0 == ScriptOpcodes.CC_SETONHOLD) {
var3.onHold = var8;
} else if (var0 == ScriptOpcodes.CC_SETONRELEASE) {
var3.onRelease = var8;
} else if (var0 == ScriptOpcodes.CC_SETONMOUSEOVER) {
var3.onMouseOver = var8;
} else if (var0 == ScriptOpcodes.CC_SETONMOUSELEAVE) {
var3.onMouseLeave = var8;
} else if (var0 == ScriptOpcodes.CC_SETONDRAG) {
var3.onDrag = var8;
} else if (var0 == ScriptOpcodes.CC_SETONTARGETLEAVE) {
var3.onTargetLeave = var8;
} else if (var0 == ScriptOpcodes.CC_SETONVARTRANSMIT) {
var3.onVarTransmit = var8;
var3.varTransmitTriggers = var5;
} else if (var0 == ScriptOpcodes.CC_SETONTIMER) {
var3.onTimer = var8;
} else if (var0 == ScriptOpcodes.CC_SETONOP) {
var3.onOp = var8;
} else if (var0 == ScriptOpcodes.CC_SETONDRAGCOMPLETE) {
var3.onDragComplete = var8;
} else if (var0 == ScriptOpcodes.CC_SETONCLICKREPEAT) {
var3.onClickRepeat = var8;
} else if (var0 == ScriptOpcodes.CC_SETONMOUSEREPEAT) {
var3.onMouseRepeat = var8;
} else if (var0 == ScriptOpcodes.CC_SETONINVTRANSMIT) {
var3.onInvTransmit = var8;
var3.invTransmitTriggers = var5;
} else if (var0 == ScriptOpcodes.CC_SETONSTATTRANSMIT) {
var3.onStatTransmit = var8;
var3.statTransmitTriggers = var5;
} else if (var0 == ScriptOpcodes.CC_SETONTARGETENTER) {
var3.onTargetEnter = var8;
} else if (var0 == ScriptOpcodes.CC_SETONSCROLLWHEEL) {
var3.onScroll = var8;
} else if (var0 == ScriptOpcodes.CC_SETONCHATTRANSMIT) {
var3.onChatTransmit = var8;
} else if (var0 == ScriptOpcodes.CC_SETONKEY) {
var3.onKey = var8;
} else if (var0 == ScriptOpcodes.CC_SETONFRIENDTRANSMIT) {
var3.onFriendTransmit = var8;
} else if (var0 == ScriptOpcodes.CC_SETONCLANTRANSMIT) {
var3.onClanTransmit = var8;
} else if (var0 == ScriptOpcodes.CC_SETONMISCTRANSMIT) {
var3.onMiscTransmit = var8;
} else if (var0 == ScriptOpcodes.CC_SETONDIALOGABORT) {
var3.onDialogAbort = var8;
} else if (var0 == ScriptOpcodes.CC_SETONSUBCHANGE) {
var3.onSubChange = var8;
} else if (var0 == ScriptOpcodes.CC_SETONSTOCKTRANSMIT) {
var3.onStockTransmit = var8;
} else if (var0 == 1426) {
var3.field3078 = var8;
} else if (var0 == ScriptOpcodes.CC_SETONRESIZE) {
var3.onResize = var8;
} else if (var0 == ScriptOpcodes.CC_SETONCLANSETTINGSTRANSMIT) {
var3.field3074 = var8;
} else if (var0 == ScriptOpcodes.CC_SETONCLANCHANNELTRANSMIT) {
var3.field3072 = var8;
} else if (var0 == 1430) {
var3.field3067 = var8;
} else {
if (var0 != 1431) {
return 2;
}
var3.field3068 = var8;
}
var3.hasListener = true;
return 1;
}
}