import java.util.Collections; 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("ff") @Implements("ItemComposition") public class ItemComposition extends DualNode { @ObfuscatedName("b") @ObfuscatedSignature( descriptor = "Lig;" ) @Export("ItemDefinition_cached") static EvictingDualNodeHashTable ItemDefinition_cached; @ObfuscatedName("x") @ObfuscatedSignature( descriptor = "Lig;" ) @Export("ItemDefinition_cachedModels") static EvictingDualNodeHashTable ItemDefinition_cachedModels; @ObfuscatedName("y") @ObfuscatedSignature( descriptor = "Lig;" ) @Export("ItemDefinition_cachedSprites") public static EvictingDualNodeHashTable ItemDefinition_cachedSprites; @ObfuscatedName("hb") @ObfuscatedGetter( intValue = -1826630813 ) static int field1931; @ObfuscatedName("t") @ObfuscatedGetter( intValue = 1753723685 ) @Export("id") public int id; @ObfuscatedName("l") @ObfuscatedGetter( intValue = 1325108261 ) @Export("model") int model; @ObfuscatedName("u") @Export("name") public String name; @ObfuscatedName("n") @Export("recolorFrom") public short[] recolorFrom; @ObfuscatedName("z") @Export("recolorTo") public short[] recolorTo; @ObfuscatedName("q") @Export("retextureFrom") public short[] retextureFrom; @ObfuscatedName("d") @Export("retextureTo") public short[] retextureTo; @ObfuscatedName("r") @ObfuscatedGetter( intValue = 1547329069 ) @Export("zoom2d") public int zoom2d; @ObfuscatedName("m") @ObfuscatedGetter( intValue = -644956173 ) @Export("xan2d") public int xan2d; @ObfuscatedName("c") @ObfuscatedGetter( intValue = -212256273 ) @Export("yan2d") public int yan2d; @ObfuscatedName("f") @ObfuscatedGetter( intValue = -1823149965 ) @Export("zan2d") public int zan2d; @ObfuscatedName("h") @ObfuscatedGetter( intValue = 494142303 ) @Export("offsetX2d") public int offsetX2d; @ObfuscatedName("v") @ObfuscatedGetter( intValue = 1457656139 ) @Export("offsetY2d") public int offsetY2d; @ObfuscatedName("ag") @ObfuscatedGetter( intValue = 912207585 ) @Export("isStackable") public int isStackable; @ObfuscatedName("ae") @ObfuscatedGetter( intValue = -1708222131 ) @Export("price") public int price; @ObfuscatedName("aq") @Export("isMembersOnly") public boolean isMembersOnly; @ObfuscatedName("al") @Export("groundActions") public String[] groundActions; @ObfuscatedName("am") @Export("inventoryActions") public String[] inventoryActions; @ObfuscatedName("ah") @ObfuscatedGetter( intValue = 185222303 ) @Export("shiftClickIndex") int shiftClickIndex; @ObfuscatedName("as") @ObfuscatedGetter( intValue = 612677957 ) @Export("maleModel") int maleModel; @ObfuscatedName("at") @ObfuscatedGetter( intValue = -1733428819 ) @Export("maleModel1") int maleModel1; @ObfuscatedName("az") @ObfuscatedGetter( intValue = -1445773573 ) @Export("maleOffset") int maleOffset; @ObfuscatedName("ac") @ObfuscatedGetter( intValue = 2098654815 ) @Export("femaleModel") int femaleModel; @ObfuscatedName("ak") @ObfuscatedGetter( intValue = 535363813 ) @Export("femaleModel1") int femaleModel1; @ObfuscatedName("ab") @ObfuscatedGetter( intValue = -1120928283 ) @Export("femaleOffset") int femaleOffset; @ObfuscatedName("ar") @ObfuscatedGetter( intValue = -1786291667 ) @Export("maleModel2") int maleModel2; @ObfuscatedName("ad") @ObfuscatedGetter( intValue = 1983865871 ) @Export("femaleModel2") int femaleModel2; @ObfuscatedName("an") @ObfuscatedGetter( intValue = 1571654147 ) @Export("maleHeadModel") int maleHeadModel; @ObfuscatedName("ax") @ObfuscatedGetter( intValue = -1283309971 ) @Export("maleHeadModel2") int maleHeadModel2; @ObfuscatedName("av") @ObfuscatedGetter( intValue = 185358531 ) @Export("femaleHeadModel") int femaleHeadModel; @ObfuscatedName("ap") @ObfuscatedGetter( intValue = -1890466531 ) @Export("femaleHeadModel2") int femaleHeadModel2; @ObfuscatedName("au") @Export("countobj") int[] countobj; @ObfuscatedName("aj") @Export("countco") int[] countco; @ObfuscatedName("af") @ObfuscatedGetter( intValue = 777424459 ) @Export("note") public int note; @ObfuscatedName("aw") @ObfuscatedGetter( intValue = 1728558393 ) @Export("noteTemplate") public int noteTemplate; @ObfuscatedName("ao") @ObfuscatedGetter( intValue = 394985009 ) @Export("resizeX") int resizeX; @ObfuscatedName("aa") @ObfuscatedGetter( intValue = -1569909587 ) @Export("resizeY") int resizeY; @ObfuscatedName("ay") @ObfuscatedGetter( intValue = -1225424617 ) @Export("resizeZ") int resizeZ; @ObfuscatedName("bg") @ObfuscatedGetter( intValue = 1533148773 ) @Export("ambient") public int ambient; @ObfuscatedName("bl") @ObfuscatedGetter( intValue = -1062134429 ) @Export("contrast") public int contrast; @ObfuscatedName("bx") @ObfuscatedGetter( intValue = 693327587 ) @Export("team") public int team; @ObfuscatedName("bd") @ObfuscatedSignature( descriptor = "Lnf;" ) @Export("params") IterableNodeHashTable params; @ObfuscatedName("bt") @Export("isTradable") public boolean isTradable; @ObfuscatedName("bf") @ObfuscatedGetter( intValue = -404111403 ) @Export("unnotedId") int unnotedId; @ObfuscatedName("bs") @ObfuscatedGetter( intValue = 1171307527 ) @Export("notedId") int notedId; @ObfuscatedName("bh") @ObfuscatedGetter( intValue = -593718331 ) @Export("placeholder") public int placeholder; @ObfuscatedName("bw") @ObfuscatedGetter( intValue = -120370631 ) @Export("placeholderTemplate") public int placeholderTemplate; static { ItemDefinition_cached = new EvictingDualNodeHashTable(64); // L: 28 ItemDefinition_cachedModels = new EvictingDualNodeHashTable(50); // L: 29 ItemDefinition_cachedSprites = new EvictingDualNodeHashTable(200); // L: 30 } ItemComposition() { this.name = "null"; // L: 34 this.zoom2d = 2000; // L: 39 this.xan2d = 0; // L: 40 this.yan2d = 0; // L: 41 this.zan2d = 0; // L: 42 this.offsetX2d = 0; this.offsetY2d = 0; this.isStackable = 0; this.price = 1; this.isMembersOnly = false; this.groundActions = new String[]{null, null, "Take", null, null}; this.inventoryActions = new String[]{null, null, null, null, "Drop"}; // L: 49 this.shiftClickIndex = -2; this.maleModel = -1; this.maleModel1 = -1; this.maleOffset = 0; this.femaleModel = -1; this.femaleModel1 = -1; // L: 56 this.femaleOffset = 0; this.maleModel2 = -1; this.femaleModel2 = -1; // L: 59 this.maleHeadModel = -1; // L: 60 this.maleHeadModel2 = -1; // L: 61 this.femaleHeadModel = -1; // L: 62 this.femaleHeadModel2 = -1; // L: 63 this.note = -1; // L: 66 this.noteTemplate = -1; // L: 67 this.resizeX = 128; // L: 68 this.resizeY = 128; // L: 69 this.resizeZ = 128; // L: 70 this.ambient = 0; // L: 71 this.contrast = 0; // L: 72 this.team = 0; // L: 73 this.isTradable = false; // L: 75 this.unnotedId = -1; // L: 76 this.notedId = -1; // L: 77 this.placeholder = -1; // L: 78 this.placeholderTemplate = -1; // L: 79 } // L: 81 @ObfuscatedName("w") @ObfuscatedSignature( descriptor = "(I)V", garbageValue = "-2124402734" ) @Export("post") void post() { } // L: 121 @ObfuscatedName("s") @ObfuscatedSignature( descriptor = "(Lop;I)V", garbageValue = "-894637983" ) @Export("decode") void decode(Buffer var1) { while (true) { int var2 = var1.readUnsignedByte(); // L: 125 if (var2 == 0) { // L: 126 return; // L: 129 } this.decodeNext(var1, var2); // L: 127 } } @ObfuscatedName("a") @ObfuscatedSignature( descriptor = "(Lop;II)V", garbageValue = "257539679" ) @Export("decodeNext") void decodeNext(Buffer var1, int var2) { if (var2 == 1) { // L: 132 this.model = var1.readUnsignedShort(); } else if (var2 == 2) { // L: 133 this.name = var1.readStringCp1252NullTerminated(); } else if (var2 == 4) { // L: 134 this.zoom2d = var1.readUnsignedShort(); } else if (var2 == 5) { // L: 135 this.xan2d = var1.readUnsignedShort(); } else if (var2 == 6) { // L: 136 this.yan2d = var1.readUnsignedShort(); } else if (var2 == 7) { // L: 137 this.offsetX2d = var1.readUnsignedShort(); // L: 138 if (this.offsetX2d > 32767) { // L: 139 this.offsetX2d -= 65536; } } else if (var2 == 8) { // L: 141 this.offsetY2d = var1.readUnsignedShort(); // L: 142 if (this.offsetY2d > 32767) { // L: 143 this.offsetY2d -= 65536; } } else if (var2 == 9) { // L: 145 var1.readStringCp1252NullTerminated(); // L: 146 } else if (var2 == 11) { // L: 148 this.isStackable = 1; } else if (var2 == 12) { // L: 149 this.price = var1.readInt(); } else if (var2 == 16) { // L: 150 this.isMembersOnly = true; } else if (var2 == 23) { // L: 151 this.maleModel = var1.readUnsignedShort(); // L: 152 this.maleOffset = var1.readUnsignedByte(); // L: 153 } else if (var2 == 24) { // L: 155 this.maleModel1 = var1.readUnsignedShort(); } else if (var2 == 25) { // L: 156 this.femaleModel = var1.readUnsignedShort(); // L: 157 this.femaleOffset = var1.readUnsignedByte(); // L: 158 } else if (var2 == 26) { // L: 160 this.femaleModel1 = var1.readUnsignedShort(); } else if (var2 >= 30 && var2 < 35) { // L: 161 this.groundActions[var2 - 30] = var1.readStringCp1252NullTerminated(); // L: 162 if (this.groundActions[var2 - 30].equalsIgnoreCase("Hidden")) { // L: 163 this.groundActions[var2 - 30] = null; } } else if (var2 >= 35 && var2 < 40) { // L: 165 this.inventoryActions[var2 - 35] = var1.readStringCp1252NullTerminated(); } else { int var3; int var4; if (var2 == 40) { // L: 166 var3 = var1.readUnsignedByte(); // L: 167 this.recolorFrom = new short[var3]; // L: 168 this.recolorTo = new short[var3]; // L: 169 for (var4 = 0; var4 < var3; ++var4) { // L: 170 this.recolorFrom[var4] = (short)var1.readUnsignedShort(); // L: 171 this.recolorTo[var4] = (short)var1.readUnsignedShort(); // L: 172 } } else if (var2 == 41) { // L: 175 var3 = var1.readUnsignedByte(); // L: 176 this.retextureFrom = new short[var3]; // L: 177 this.retextureTo = new short[var3]; // L: 178 for (var4 = 0; var4 < var3; ++var4) { // L: 179 this.retextureFrom[var4] = (short)var1.readUnsignedShort(); // L: 180 this.retextureTo[var4] = (short)var1.readUnsignedShort(); // L: 181 } } else if (var2 == 42) { // L: 184 this.shiftClickIndex = var1.readByte(); // L: 185 } else if (var2 == 65) { // L: 187 this.isTradable = true; } else if (var2 == 78) { // L: 188 this.maleModel2 = var1.readUnsignedShort(); } else if (var2 == 79) { // L: 189 this.femaleModel2 = var1.readUnsignedShort(); } else if (var2 == 90) { // L: 190 this.maleHeadModel = var1.readUnsignedShort(); } else if (var2 == 91) { // L: 191 this.femaleHeadModel = var1.readUnsignedShort(); } else if (var2 == 92) { // L: 192 this.maleHeadModel2 = var1.readUnsignedShort(); } else if (var2 == 93) { // L: 193 this.femaleHeadModel2 = var1.readUnsignedShort(); } else if (var2 == 94) { // L: 194 var1.readUnsignedShort(); // L: 195 } else if (var2 == 95) { this.zan2d = var1.readUnsignedShort(); // L: 197 } else if (var2 == 97) { // L: 198 this.note = var1.readUnsignedShort(); } else if (var2 == 98) { // L: 199 this.noteTemplate = var1.readUnsignedShort(); } else if (var2 >= 100 && var2 < 110) { // L: 200 if (this.countobj == null) { // L: 201 this.countobj = new int[10]; // L: 202 this.countco = new int[10]; // L: 203 } this.countobj[var2 - 100] = var1.readUnsignedShort(); // L: 205 this.countco[var2 - 100] = var1.readUnsignedShort(); // L: 206 } else if (var2 == 110) { // L: 208 this.resizeX = var1.readUnsignedShort(); } else if (var2 == 111) { // L: 209 this.resizeY = var1.readUnsignedShort(); } else if (var2 == 112) { // L: 210 this.resizeZ = var1.readUnsignedShort(); } else if (var2 == 113) { // L: 211 this.ambient = var1.readByte(); } else if (var2 == 114) { // L: 212 this.contrast = var1.readByte() * 5; } else if (var2 == 115) { // L: 213 this.team = var1.readUnsignedByte(); } else if (var2 == 139) { // L: 214 this.unnotedId = var1.readUnsignedShort(); } else if (var2 == 140) { // L: 215 this.notedId = var1.readUnsignedShort(); } else if (var2 == 148) { // L: 216 this.placeholder = var1.readUnsignedShort(); } else if (var2 == 149) { // L: 217 this.placeholderTemplate = var1.readUnsignedShort(); } else if (var2 == 249) { // L: 218 this.params = class13.readStringIntParameters(var1, this.params); } } } // L: 220 @ObfuscatedName("o") @ObfuscatedSignature( descriptor = "(Lff;Lff;B)V", garbageValue = "-19" ) @Export("genCert") void genCert(ItemComposition var1, ItemComposition var2) { this.model = var1.model; // L: 223 this.zoom2d = var1.zoom2d; // L: 224 this.xan2d = var1.xan2d; // L: 225 this.yan2d = var1.yan2d; // L: 226 this.zan2d = var1.zan2d; // L: 227 this.offsetX2d = var1.offsetX2d; // L: 228 this.offsetY2d = var1.offsetY2d; this.recolorFrom = var1.recolorFrom; this.recolorTo = var1.recolorTo; // L: 231 this.retextureFrom = var1.retextureFrom; // L: 232 this.retextureTo = var1.retextureTo; // L: 233 this.name = var2.name; // L: 234 this.isMembersOnly = var2.isMembersOnly; // L: 235 this.price = var2.price; // L: 236 this.isStackable = 1; // L: 237 } // L: 238 @ObfuscatedName("g") @ObfuscatedSignature( descriptor = "(Lff;Lff;I)V", garbageValue = "-2034384868" ) @Export("genBought") void genBought(ItemComposition var1, ItemComposition var2) { this.model = var1.model; // L: 241 this.zoom2d = var1.zoom2d; // L: 242 this.xan2d = var1.xan2d; // L: 243 this.yan2d = var1.yan2d; // L: 244 this.zan2d = var1.zan2d; // L: 245 this.offsetX2d = var1.offsetX2d; // L: 246 this.offsetY2d = var1.offsetY2d; // L: 247 this.recolorFrom = var2.recolorFrom; // L: 248 this.recolorTo = var2.recolorTo; // L: 249 this.retextureFrom = var2.retextureFrom; // L: 250 this.retextureTo = var2.retextureTo; // L: 251 this.name = var2.name; // L: 252 this.isMembersOnly = var2.isMembersOnly; // L: 253 this.isStackable = var2.isStackable; // L: 254 this.maleModel = var2.maleModel; // L: 255 this.maleModel1 = var2.maleModel1; // L: 256 this.maleModel2 = var2.maleModel2; // L: 257 this.femaleModel = var2.femaleModel; // L: 258 this.femaleModel1 = var2.femaleModel1; // L: 259 this.femaleModel2 = var2.femaleModel2; // L: 260 this.maleHeadModel = var2.maleHeadModel; // L: 261 this.maleHeadModel2 = var2.maleHeadModel2; // L: 262 this.femaleHeadModel = var2.femaleHeadModel; // L: 263 this.femaleHeadModel2 = var2.femaleHeadModel2; // L: 264 this.team = var2.team; // L: 265 this.groundActions = var2.groundActions; // L: 266 this.inventoryActions = new String[5]; // L: 267 if (var2.inventoryActions != null) { // L: 268 for (int var3 = 0; var3 < 4; ++var3) { this.inventoryActions[var3] = var2.inventoryActions[var3]; } } this.inventoryActions[4] = "Discard"; // L: 269 this.price = 0; // L: 270 } // L: 271 @ObfuscatedName("e") @ObfuscatedSignature( descriptor = "(Lff;Lff;I)V", garbageValue = "1014802643" ) @Export("genPlaceholder") void genPlaceholder(ItemComposition var1, ItemComposition var2) { this.model = var1.model; // L: 274 this.zoom2d = var1.zoom2d; // L: 275 this.xan2d = var1.xan2d; // L: 276 this.yan2d = var1.yan2d; // L: 277 this.zan2d = var1.zan2d; // L: 278 this.offsetX2d = var1.offsetX2d; // L: 279 this.offsetY2d = var1.offsetY2d; // L: 280 this.recolorFrom = var1.recolorFrom; // L: 281 this.recolorTo = var1.recolorTo; // L: 282 this.retextureFrom = var1.retextureFrom; // L: 283 this.retextureTo = var1.retextureTo; // L: 284 this.isStackable = var1.isStackable; // L: 285 this.name = var2.name; // L: 286 this.price = 0; // L: 287 this.isMembersOnly = false; // L: 288 this.isTradable = false; // L: 289 } // L: 290 @ObfuscatedName("p") @ObfuscatedSignature( descriptor = "(II)Lgk;", garbageValue = "1329833901" ) @Export("getModelData") public final ModelData getModelData(int var1) { int var3; if (this.countobj != null && var1 > 1) { // L: 293 int var2 = -1; // L: 294 for (var3 = 0; var3 < 10; ++var3) { // L: 295 if (var1 >= this.countco[var3] && this.countco[var3] != 0) { // L: 296 var2 = this.countobj[var3]; } } if (var2 != -1) { // L: 298 return TaskHandler.ItemDefinition_get(var2).getModelData(1); } } ModelData var4 = ModelData.ModelData_get(HealthBarDefinition.ItemDefinition_modelArchive, this.model, 0); // L: 300 if (var4 == null) { // L: 301 return null; } else { if (this.resizeX != 128 || this.resizeY != 128 || this.resizeZ != 128) { // L: 302 var4.resize(this.resizeX, this.resizeY, this.resizeZ); } if (this.recolorFrom != null) { // L: 303 for (var3 = 0; var3 < this.recolorFrom.length; ++var3) { // L: 304 var4.recolor(this.recolorFrom[var3], this.recolorTo[var3]); // L: 305 } } if (this.retextureFrom != null) { // L: 308 for (var3 = 0; var3 < this.retextureFrom.length; ++var3) { // L: 309 var4.retexture(this.retextureFrom[var3], this.retextureTo[var3]); // L: 310 } } return var4; // L: 313 } } @ObfuscatedName("j") @ObfuscatedSignature( descriptor = "(IS)Lhl;", garbageValue = "-15441" ) @Export("getModel") public final Model getModel(int var1) { if (this.countobj != null && var1 > 1) { // L: 317 int var2 = -1; // L: 318 for (int var3 = 0; var3 < 10; ++var3) { // L: 319 if (var1 >= this.countco[var3] && this.countco[var3] != 0) { // L: 320 var2 = this.countobj[var3]; } } if (var2 != -1) { // L: 322 return TaskHandler.ItemDefinition_get(var2).getModel(1); } } Model var5 = (Model)ItemDefinition_cachedModels.get((long)this.id); // L: 324 if (var5 != null) { // L: 325 return var5; } else { ModelData var6 = ModelData.ModelData_get(HealthBarDefinition.ItemDefinition_modelArchive, this.model, 0); // L: 326 if (var6 == null) { // L: 327 return null; } else { if (this.resizeX != 128 || this.resizeY != 128 || this.resizeZ != 128) { // L: 328 var6.resize(this.resizeX, this.resizeY, this.resizeZ); } int var4; if (this.recolorFrom != null) { // L: 329 for (var4 = 0; var4 < this.recolorFrom.length; ++var4) { // L: 330 var6.recolor(this.recolorFrom[var4], this.recolorTo[var4]); // L: 331 } } if (this.retextureFrom != null) { // L: 334 for (var4 = 0; var4 < this.retextureFrom.length; ++var4) { // L: 335 var6.retexture(this.retextureFrom[var4], this.retextureTo[var4]); // L: 336 } } var5 = var6.toModel(this.ambient + 64, this.contrast + 768, -50, -10, -50); // L: 339 var5.isSingleTile = true; // L: 340 ItemDefinition_cachedModels.put(var5, (long)this.id); // L: 341 return var5; // L: 342 } } } @ObfuscatedName("b") @ObfuscatedSignature( descriptor = "(II)Lff;", garbageValue = "573530430" ) @Export("getCountObj") public ItemComposition getCountObj(int var1) { if (this.countobj != null && var1 > 1) { // L: 346 int var2 = -1; // L: 347 for (int var3 = 0; var3 < 10; ++var3) { // L: 348 if (var1 >= this.countco[var3] && this.countco[var3] != 0) { var2 = this.countobj[var3]; // L: 349 } } if (var2 != -1) { // L: 351 return TaskHandler.ItemDefinition_get(var2); } } return this; // L: 353 } @ObfuscatedName("y") @ObfuscatedSignature( descriptor = "(ZI)Z", garbageValue = "-1361856849" ) @Export("hasNoValidModel") public final boolean hasNoValidModel(boolean var1) { int var2 = this.maleModel; // L: 438 int var3 = this.maleModel1; // L: 439 int var4 = this.maleModel2; // L: 440 if (var1) { // L: 441 var2 = this.femaleModel; // L: 442 var3 = this.femaleModel1; // L: 443 var4 = this.femaleModel2; // L: 444 } if (var2 == -1) { // L: 446 return true; } else { boolean var5 = true; // L: 447 if (!HealthBarDefinition.ItemDefinition_modelArchive.tryLoadFile(var2, 0)) { // L: 448 var5 = false; } if (var3 != -1 && !HealthBarDefinition.ItemDefinition_modelArchive.tryLoadFile(var3, 0)) { // L: 449 var5 = false; } if (var4 != -1 && !HealthBarDefinition.ItemDefinition_modelArchive.tryLoadFile(var4, 0)) { // L: 450 var5 = false; } return var5; // L: 451 } } @ObfuscatedName("k") @ObfuscatedSignature( descriptor = "(ZB)Lgk;", garbageValue = "114" ) public final ModelData method3397(boolean var1) { int var2 = this.maleModel; // L: 455 int var3 = this.maleModel1; // L: 456 int var4 = this.maleModel2; // L: 457 if (var1) { // L: 458 var2 = this.femaleModel; // L: 459 var3 = this.femaleModel1; // L: 460 var4 = this.femaleModel2; // L: 461 } if (var2 == -1) { // L: 463 return null; } else { ModelData var5 = ModelData.ModelData_get(HealthBarDefinition.ItemDefinition_modelArchive, var2, 0); // L: 464 if (var3 != -1) { // L: 465 ModelData var6 = ModelData.ModelData_get(HealthBarDefinition.ItemDefinition_modelArchive, var3, 0); // L: 466 if (var4 != -1) { // L: 467 ModelData var7 = ModelData.ModelData_get(HealthBarDefinition.ItemDefinition_modelArchive, var4, 0); // L: 468 ModelData[] var8 = new ModelData[]{var5, var6, var7}; // L: 469 var5 = new ModelData(var8, 3); // L: 470 } else { ModelData[] var10 = new ModelData[]{var5, var6}; // L: 473 var5 = new ModelData(var10, 2); // L: 474 } } if (!var1 && this.maleOffset != 0) { // L: 477 var5.changeOffset(0, this.maleOffset, 0); } if (var1 && this.femaleOffset != 0) { // L: 478 var5.changeOffset(0, this.femaleOffset, 0); } int var9; if (this.recolorFrom != null) { // L: 479 for (var9 = 0; var9 < this.recolorFrom.length; ++var9) { // L: 480 var5.recolor(this.recolorFrom[var9], this.recolorTo[var9]); // L: 481 } } if (this.retextureFrom != null) { // L: 484 for (var9 = 0; var9 < this.retextureFrom.length; ++var9) { // L: 485 var5.retexture(this.retextureFrom[var9], this.retextureTo[var9]); // L: 486 } } return var5; // L: 489 } } @ObfuscatedName("t") @ObfuscatedSignature( descriptor = "(ZI)Z", garbageValue = "-1905200886" ) public final boolean method3342(boolean var1) { int var2 = this.maleHeadModel; // L: 493 int var3 = this.maleHeadModel2; // L: 494 if (var1) { // L: 495 var2 = this.femaleHeadModel; // L: 496 var3 = this.femaleHeadModel2; // L: 497 } if (var2 == -1) { // L: 499 return true; } else { boolean var4 = true; // L: 500 if (!HealthBarDefinition.ItemDefinition_modelArchive.tryLoadFile(var2, 0)) { // L: 501 var4 = false; } if (var3 != -1 && !HealthBarDefinition.ItemDefinition_modelArchive.tryLoadFile(var3, 0)) { // L: 502 var4 = false; } return var4; // L: 503 } } @ObfuscatedName("l") @ObfuscatedSignature( descriptor = "(ZB)Lgk;", garbageValue = "92" ) public final ModelData method3409(boolean var1) { int var2 = this.maleHeadModel; // L: 507 int var3 = this.maleHeadModel2; // L: 508 if (var1) { // L: 509 var2 = this.femaleHeadModel; // L: 510 var3 = this.femaleHeadModel2; // L: 511 } if (var2 == -1) { // L: 513 return null; } else { ModelData var4 = ModelData.ModelData_get(HealthBarDefinition.ItemDefinition_modelArchive, var2, 0); // L: 514 if (var3 != -1) { // L: 515 ModelData var5 = ModelData.ModelData_get(HealthBarDefinition.ItemDefinition_modelArchive, var3, 0); // L: 516 ModelData[] var6 = new ModelData[]{var4, var5}; // L: 517 var4 = new ModelData(var6, 2); // L: 518 } int var7; if (this.recolorFrom != null) { // L: 520 for (var7 = 0; var7 < this.recolorFrom.length; ++var7) { // L: 521 var4.recolor(this.recolorFrom[var7], this.recolorTo[var7]); // L: 522 } } if (this.retextureFrom != null) { // L: 525 for (var7 = 0; var7 < this.retextureFrom.length; ++var7) { // L: 526 var4.retexture(this.retextureFrom[var7], this.retextureTo[var7]); // L: 527 } } return var4; // L: 530 } } @ObfuscatedName("u") @ObfuscatedSignature( descriptor = "(III)I", garbageValue = "722910624" ) @Export("getIntParam") public int getIntParam(int var1, int var2) { return NPC.method2251(this.params, var1, var2); // L: 534 } @ObfuscatedName("n") @ObfuscatedSignature( descriptor = "(ILjava/lang/String;I)Ljava/lang/String;", garbageValue = "1720337072" ) @Export("getStringParam") public String getStringParam(int var1, String var2) { return VarbitComposition.method3205(this.params, var1, var2); // L: 538 } @ObfuscatedName("z") @ObfuscatedSignature( descriptor = "(I)I", garbageValue = "-668917541" ) @Export("getShiftClickIndex") public int getShiftClickIndex() { if (this.shiftClickIndex != -1 && this.inventoryActions != null) { // L: 542 if (this.shiftClickIndex >= 0) { // L: 543 return this.inventoryActions[this.shiftClickIndex] != null ? this.shiftClickIndex * -1492002977 * 185222303 : -1; } else { return "Drop".equalsIgnoreCase(this.inventoryActions[4]) ? 4 : -1; // L: 544 } } else { return -1; } } @ObfuscatedName("r") @ObfuscatedSignature( descriptor = "(B)Z", garbageValue = "87" ) boolean method3368() { return this.recolorTo != null; // L: 561 } @ObfuscatedName("m") @ObfuscatedSignature( descriptor = "(I)Z", garbageValue = "983299957" ) boolean method3347() { return this.retextureTo != null; // L: 565 } @ObfuscatedName("i") @ObfuscatedSignature( descriptor = "(II)Len;", garbageValue = "1216305288" ) @Export("WorldMapElement_get") public static WorldMapElement WorldMapElement_get(int var0) { return var0 >= 0 && var0 < WorldMapElement.WorldMapElement_cached.length && WorldMapElement.WorldMapElement_cached[var0] != null ? WorldMapElement.WorldMapElement_cached[var0] : new WorldMapElement(var0); } @ObfuscatedName("i") @ObfuscatedSignature( descriptor = "([I[II)V", garbageValue = "1539024101" ) public static void method3408(int[] var0, int[] var1) { if (var0 != null && var1 != null) { // L: 43 class176.ByteArrayPool_alternativeSizes = var0; // L: 50 ByteArrayPool.ByteArrayPool_altSizeArrayCounts = new int[var0.length]; // L: 51 class260.ByteArrayPool_arrays = new byte[var0.length][][]; // L: 52 for (int var2 = 0; var2 < class176.ByteArrayPool_alternativeSizes.length; ++var2) { // L: 53 class260.ByteArrayPool_arrays[var2] = new byte[var1[var2]][]; // L: 54 ByteArrayPool.field3890.add(var0[var2]); // L: 55 } Collections.sort(ByteArrayPool.field3890); // L: 57 } else { class176.ByteArrayPool_alternativeSizes = null; // L: 44 ByteArrayPool.ByteArrayPool_altSizeArrayCounts = null; // L: 45 class260.ByteArrayPool_arrays = null; // L: 46 class301.method5508(); // L: 47 } } // L: 48 58 @ObfuscatedName("a") @ObfuscatedSignature( descriptor = "(Ljava/lang/CharSequence;II)I", garbageValue = "-1491033434" ) public static int method3407(CharSequence var0, int var1) { return AttackOption.method2304(var0, var1, true); // L: 80 } @ObfuscatedName("o") @ObfuscatedSignature( descriptor = "(II)Z", garbageValue = "-76865797" ) public static boolean method3403(int var0) { return var0 >= 0 && var0 < 112 ? KeyHandler.field119[var0] : false; // L: 229 230 } @ObfuscatedName("jm") @ObfuscatedSignature( descriptor = "(III)V", garbageValue = "-1755655123" ) @Export("runIntfCloseListeners") static final void runIntfCloseListeners(int var0, int var1) { if (class174.loadInterface(var0)) { // L: 11121 class150.runComponentCloseListeners(WorldMapSection1.Widget_interfaceComponents[var0], var1); // L: 11122 } } // L: 11123 @ObfuscatedName("ja") @ObfuscatedSignature( descriptor = "(I)V", garbageValue = "1815140573" ) static void method3406() { for (InterfaceParent var0 = (InterfaceParent)Client.interfaceParents.first(); var0 != null; var0 = (InterfaceParent)Client.interfaceParents.next()) { // L: 11283 int var1 = var0.group; // L: 11284 if (class174.loadInterface(var1)) { // L: 11285 boolean var2 = true; // L: 11286 Widget[] var3 = WorldMapSection1.Widget_interfaceComponents[var1]; // L: 11287 int var4; for (var4 = 0; var4 < var3.length; ++var4) { // L: 11288 if (var3[var4] != null) { // L: 11289 var2 = var3[var4].isIf3; // L: 11290 break; } } if (!var2) { // L: 11294 var4 = (int)var0.key; // L: 11295 Widget var5 = UserComparator9.getWidget(var4); // L: 11296 if (var5 != null) { // L: 11297 class184.invalidateWidget(var5); } } } } } // L: 11301 }