package mapped;

import net.runelite.api.Nameable;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
import net.runelite.rs.api.RSFriend;

@ObfuscatedName("qk")
public class Friend extends Buddy implements RSFriend {
   @ObfuscatedName("gz")
   static String worldHost;
   @ObfuscatedName("at")
   boolean field4681;
   @ObfuscatedName("ah")
   boolean field4679;

   @ObfuscatedName("at")
   @ObfuscatedSignature(
      descriptor = "(Lqk;I)I",
      garbageValue = "1155977086"
   )
   int method8118(Friend var1) {
      return super.world == Client.worldId && Client.worldId != var1.world?-1:(Client.worldId == var1.world && super.world != Client.worldId?1:(super.world != 0 && var1.world == 0?-1:(var1.world != 0 && super.world == 0?1:(this.field4681 && !var1.field4681?-1:(!this.field4681 && var1.field4681?1:(this.field4679 && !var1.field4679?-1:(!this.field4679 && var1.field4679?1:(super.world != 0?super.int2 - var1.int2:var1.int2 - super.int2))))))));
   }

   @ObfuscatedName("ah")
   @ObfuscatedSignature(
      descriptor = "(Lrf;B)I",
      garbageValue = "-95"
   )
   public int vmethod8263(User var1) {
      return this.method8118((Friend)var1);
   }

   public int compareTo(Nameable var1) {
      return this.method8118((Friend)var1);
   }
}
