import java.awt.Rectangle;

public abstract class Class169 implements Interface16 {

   public Class251 aClass251_2045;
   public int anInt2046;
   public Class337 aClass337_2047;
   public Class256 aClass256_2048;
   static Class218 aClass218_2049;


   public Object method2888(int var1) {
      return this.aClass251_2045.method4482(this.aClass337_2047, (byte)-13);
   }

   public void method2889(RS2Buffer var1, short var2) {
      while(true) {
         int var3 = var1.readUnsignedByte(-700559597);
         if(0 == var3) {
            return;
         }

         Class160 var4 = (Class160)Class79.method1636(Class3.method536(-8098651), var3, (byte)-45);
         if(null != var4) {
            switch(var4.anInt1968 * -1820003435) {
            case 0:
               Class79.method1636(Class124.method2461(-269900746), var1.readUnsignedByte(-700559597), (byte)56);
               break;
            case 1:
            default:
               throw new IllegalStateException("");
            case 2:
               var1.method13927((short)-11462);
               break;
            case 3:
               this.aClass256_2048 = Class256.aClass256_3031;
               break;
            case 4:
               int var5 = var1.readUnsignedByte(-700559597);
               this.aClass337_2047 = (Class337)Class79.method1636(Class337.method6210((byte)-36), var5, (byte)54);
               if(null == this.aClass337_2047) {
                  throw new IllegalStateException("");
               }
            case 5:
            }
         } else {
            this.method2890(var1, var3, (byte)-23);
         }
      }
   }

   abstract void method2890(RS2Buffer var1, int var2, byte var3);

   abstract void method2891(RS2Buffer var1, int var2);

   boolean method2892(int var1) {
      if(null != this.aClass251_2045) {
         if(var1 >= -987933474) {
            ;
         }

         if(null != this.aClass337_2047) {
            return true;
         }

         if(var1 >= -987933474) {
            ;
         }
      }

      return false;
   }

   public void method2893(RS2Buffer var1) {
      while(true) {
         int var2 = var1.readUnsignedByte(-700559597);
         if(0 == var2) {
            return;
         }

         Class160 var3 = (Class160)Class79.method1636(Class3.method536(487466726), var2, (byte)-10);
         if(null != var3) {
            switch(var3.anInt1968 * -1820003435) {
            case 0:
               Class79.method1636(Class124.method2461(860825), var1.readUnsignedByte(-700559597), (byte)-22);
               break;
            case 1:
            default:
               throw new IllegalStateException("");
            case 2:
               var1.method13927((short)-7588);
               break;
            case 3:
               this.aClass256_2048 = Class256.aClass256_3031;
               break;
            case 4:
               int var4 = var1.readUnsignedByte(-700559597);
               this.aClass337_2047 = (Class337)Class79.method1636(Class337.method6210((byte)-17), var4, (byte)61);
               if(null == this.aClass337_2047) {
                  throw new IllegalStateException("");
               }
            case 5:
            }
         } else {
            this.method2890(var1, var2, (byte)-81);
         }
      }
   }

   Class169(Class251 var1, int var2) {
      this.aClass256_2048 = Class256.aClass256_3032;
      this.aClass251_2045 = var1;
      this.anInt2046 = -518366413 * var2;
   }

   public Object method2894() {
      return this.aClass251_2045.method4482(this.aClass337_2047, (byte)-50);
   }

   public Object method2895() {
      return this.aClass251_2045.method4482(this.aClass337_2047, (byte)-79);
   }

   public Object method2896() {
      return this.aClass251_2045.method4482(this.aClass337_2047, (byte)-73);
   }

   abstract void method2897(RS2Buffer var1, int var2);

   boolean method2898() {
      return null != this.aClass251_2045 && null != this.aClass337_2047;
   }

   public static int method2899(int var0, int var1, float var2, int var3) {
      return Class559.method11912(var0, var1, (int)var2, -419099888);
   }

   static final void method2900(Class508 var0, int var1) {
      Class505 var2 = var0.aBool6014?var0.aClass505_6011:var0.aClass505_6010;
      Class124 var3 = var2.aClass124_5977;
      Class121 var4 = var2.aClass121_5978;
      Class217.method3749(var3, var4, var0, 560775575);
   }

   static final void method2901(Class508 var0, int var1) {
      int var2 = var0.anIntArray6027[(var0.anInt6003 -= 98312473) * -937710807];
      Class124 var3 = Class97.method1903(var2, 220736204);
      Class105.method2159(var3, var0, -706762280);
   }

   static final void method2902(int var0, int var1, int var2, int var3, byte var4) {
      for(int var5 = 0; var5 < -2118728095 * client.anInt7885; ++var5) {
         Rectangle var6 = client.aRectangleArray7716[var5];
         if(var6.width + var6.x > var0 && var6.x < var2 + var0 && var6.height + var6.y > var1 && var6.y < var1 + var3) {
            client.aBoolArray7951[var5] = true;
         }
      }

   }

   public static void method2903(Class169 var0, byte var1) {
      Class225_Sub14_Sub2 var2 = Class49.method1193(1, (long)(var0.anInt2046 * -2027087877));
      var2.method15501(1450681635);
   }

   static final void method2904(Class508 var0, int var1) {
      int var2 = var0.anIntArray6027[(var0.anInt6003 -= 98312473) * -937710807];
      var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = Class277.aClass410_3220.method7007(var2, -1957162130).anInt4933 * -429258495;
   }
}
