package mapped;

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

@ObfuscatedName("hi")
public class class185 extends DualNode {
   @ObfuscatedName("at")
   @ObfuscatedSignature(
      descriptor = "Llk;"
   )
   public static EvictingDualNodeHashTable field2026;
   @ObfuscatedName("av")
   static int[] Tiles_lightness;

   static {
      field2026 = new EvictingDualNodeHashTable(64);
   }

   @ObfuscatedName("ao")
   @ObfuscatedSignature(
      descriptor = "(IIIIB)V",
      garbageValue = "1"
   )
   static void itemContainerSetItem_base(int var0, int var1, int var2, int var3) {
      ItemContainer var4 = (ItemContainer)ItemContainer.itemContainers.get((long)var0);
      if(var4 == null) {
         var4 = new ItemContainer();
         ItemContainer.itemContainers.put(var4, (long)var0);
      }

      if(var4.ids.length <= var1) {
         int[] var5 = new int[var1 + 1];
         int[] var6 = new int[var1 + 1];

         int var7;
         for(var7 = 0; var7 < var4.ids.length; ++var7) {
            var5[var7] = var4.ids[var7];
            var6[var7] = var4.quantities[var7];
         }

         for(var7 = var4.ids.length; var7 < var1; ++var7) {
            var5[var7] = -1;
            var6[var7] = 0;
         }

         var4.ids = var5;
         var4.quantities = var6;
      }

      var4.ids[var1] = var2;
      var4.quantities[var1] = var3;
   }

   @ObfuscatedName("ax")
   @ObfuscatedSignature(
      descriptor = "(IIII)I",
      garbageValue = "-1003071638"
   )
   static int method3681_base(int var0, int var1, int var2) {
      return (Tiles.Tiles_renderFlags[var0][var1][var2] & 8) != 0?0:(var0 > 0 && (Tiles.Tiles_renderFlags[1][var1][var2] & 2) != 0?var0 - 1:var0);
   }
}
