95 lines
2.3 KiB
Java
95 lines
2.3 KiB
Java
import net.runelite.mapping.Export;
|
|
import net.runelite.mapping.Implements;
|
|
import net.runelite.mapping.ObfuscatedName;
|
|
import net.runelite.mapping.ObfuscatedSignature;
|
|
|
|
@ObfuscatedName("jb")
|
|
@Implements("ClanMate")
|
|
public class ClanMate extends Buddy {
|
|
@ObfuscatedName("n")
|
|
@ObfuscatedSignature(
|
|
descriptor = "Lka;"
|
|
)
|
|
@Export("friend")
|
|
TriBool friend;
|
|
@ObfuscatedName("v")
|
|
@ObfuscatedSignature(
|
|
descriptor = "Lka;"
|
|
)
|
|
@Export("ignored")
|
|
TriBool ignored;
|
|
|
|
ClanMate() {
|
|
this.friend = TriBool.TriBool_unknown;
|
|
this.ignored = TriBool.TriBool_unknown;
|
|
}
|
|
|
|
@ObfuscatedName("n")
|
|
@ObfuscatedSignature(
|
|
descriptor = "(I)V",
|
|
garbageValue = "1122963499"
|
|
)
|
|
@Export("clearIsFriend")
|
|
void clearIsFriend() {
|
|
this.friend = TriBool.TriBool_unknown;
|
|
}
|
|
|
|
@ObfuscatedName("v")
|
|
@ObfuscatedSignature(
|
|
descriptor = "(I)Z",
|
|
garbageValue = "-1693898868"
|
|
)
|
|
@Export("isFriend")
|
|
public final boolean isFriend() {
|
|
if (this.friend == TriBool.TriBool_unknown) {
|
|
this.fillIsFriend();
|
|
}
|
|
|
|
return this.friend == TriBool.TriBool_true;
|
|
}
|
|
|
|
@ObfuscatedName("d")
|
|
@ObfuscatedSignature(
|
|
descriptor = "(I)V",
|
|
garbageValue = "-932162684"
|
|
)
|
|
@Export("fillIsFriend")
|
|
void fillIsFriend() {
|
|
this.friend = InterfaceParent.friendSystem.friendsList.contains(super.username) ? TriBool.TriBool_true : TriBool.TriBool_false;
|
|
}
|
|
|
|
@ObfuscatedName("c")
|
|
@ObfuscatedSignature(
|
|
descriptor = "(I)V",
|
|
garbageValue = "1113333247"
|
|
)
|
|
@Export("clearIsIgnored")
|
|
void clearIsIgnored() {
|
|
this.ignored = TriBool.TriBool_unknown;
|
|
}
|
|
|
|
@ObfuscatedName("y")
|
|
@ObfuscatedSignature(
|
|
descriptor = "(I)Z",
|
|
garbageValue = "-1838909924"
|
|
)
|
|
@Export("isIgnored")
|
|
public final boolean isIgnored() {
|
|
if (this.ignored == TriBool.TriBool_unknown) {
|
|
this.fillIsIgnored();
|
|
}
|
|
|
|
return this.ignored == TriBool.TriBool_true;
|
|
}
|
|
|
|
@ObfuscatedName("h")
|
|
@ObfuscatedSignature(
|
|
descriptor = "(I)V",
|
|
garbageValue = "-1629114941"
|
|
)
|
|
@Export("fillIsIgnored")
|
|
void fillIsIgnored() {
|
|
this.ignored = InterfaceParent.friendSystem.ignoreList.contains(super.username) ? TriBool.TriBool_true : TriBool.TriBool_false;
|
|
}
|
|
}
|