package mapped;

import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;

@ObfuscatedName("gf")
public class class168 extends class144 {
   @ObfuscatedName("ar")
   @ObfuscatedSignature(
      descriptor = "Lol;"
   )
   public static AbstractArchive field1789;
   @ObfuscatedName("at")
   @ObfuscatedGetter(
      intValue = -1215152565
   )
   int field1788;
   @ObfuscatedName("ah")
   @ObfuscatedGetter(
      longValue = -918176384341230821L
   )
   long field1786;
   // $FF: synthetic field
   @ObfuscatedSignature(
      descriptor = "Lfv;"
   )
   final class147 this$0;

   @ObfuscatedSignature(
      descriptor = "(Lfv;)V"
   )
   class168(class147 var1) {
      this.this$0 = var1;
   }

   @ObfuscatedName("at")
   @ObfuscatedSignature(
      descriptor = "(Luj;I)V",
      garbageValue = "-734756620"
   )
   void vmethod3510(Buffer var1) {
      this.field1788 = var1.readInt_base();
      this.field1786 = var1.readLong_base();
   }

   @ObfuscatedName("ah")
   @ObfuscatedSignature(
      descriptor = "(Lfc;I)V",
      garbageValue = "-2111347169"
   )
   void vmethod3506(ClanSettings var1) {
      var1.method3330_base(this.field1788, this.field1786);
   }

   @ObfuscatedName("aw")
   @ObfuscatedSignature(
      descriptor = "(ILdt;ZB)I",
      garbageValue = "-89"
   )
   static int method3514(int var0, Script var1, boolean var2) {
      Widget var3 = HealthBarDefinition.widgetDefinition.method6287(Interpreter.Interpreter_intStack[--DbTableType.Interpreter_intStackSize]);
      if(var0 == 2500) {
         Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = var3.x;
         return 1;
      } else if(var0 == 2501) {
         Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = var3.y;
         return 1;
      } else if(var0 == 2502) {
         Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = var3.width;
         return 1;
      } else if(var0 == 2503) {
         Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = var3.height;
         return 1;
      } else if(var0 == 2504) {
         Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = var3.isHidden?1:0;
         return 1;
      } else if(var0 == 2505) {
         Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = var3.parentId;
         return 1;
      } else {
         return 2;
      }
   }

   @ObfuscatedName("ou")
   @ObfuscatedSignature(
      descriptor = "(II)Lte;",
      garbageValue = "-847126653"
   )
   static DbTable method3513(int var0) {
      DbTable var1 = (DbTable)Client.DBTableIndex_cache.get((long)var0);
      if(var1 == null) {
         var1 = new DbTable(class267.field2778, SequenceDefinition.method4092_base(var0), class306.method5916_base(var0));
         Client.DBTableIndex_cache.put(var1, (long)var0);
      }

      return var1;
   }
}
