95 lines
2.0 KiB
Java
95 lines
2.0 KiB
Java
import net.runelite.mapping.Export;
|
|
import net.runelite.mapping.Implements;
|
|
import net.runelite.mapping.ObfuscatedName;
|
|
import net.runelite.mapping.ObfuscatedSignature;
|
|
|
|
@ObfuscatedName("jw")
|
|
@Implements("ClanMate")
|
|
public class ClanMate extends Buddy {
|
|
@ObfuscatedName("q")
|
|
@ObfuscatedSignature(
|
|
signature = "Ljy;"
|
|
)
|
|
@Export("friend")
|
|
TriBool friend;
|
|
@ObfuscatedName("w")
|
|
@ObfuscatedSignature(
|
|
signature = "Ljy;"
|
|
)
|
|
@Export("ignored")
|
|
TriBool ignored;
|
|
|
|
ClanMate() {
|
|
this.friend = TriBool.TriBool_unknown;
|
|
this.ignored = TriBool.TriBool_unknown;
|
|
}
|
|
|
|
@ObfuscatedName("q")
|
|
@ObfuscatedSignature(
|
|
signature = "(I)V",
|
|
garbageValue = "1319461047"
|
|
)
|
|
@Export("clearIsFriend")
|
|
void clearIsFriend() {
|
|
this.friend = TriBool.TriBool_unknown;
|
|
}
|
|
|
|
@ObfuscatedName("w")
|
|
@ObfuscatedSignature(
|
|
signature = "(I)Z",
|
|
garbageValue = "16711935"
|
|
)
|
|
@Export("isFriend")
|
|
public final boolean isFriend() {
|
|
if (this.friend == TriBool.TriBool_unknown) {
|
|
this.fillIsFriend();
|
|
}
|
|
|
|
return this.friend == TriBool.TriBool_true;
|
|
}
|
|
|
|
@ObfuscatedName("e")
|
|
@ObfuscatedSignature(
|
|
signature = "(B)V",
|
|
garbageValue = "78"
|
|
)
|
|
@Export("fillIsFriend")
|
|
void fillIsFriend() {
|
|
this.friend = ArchiveLoader.friendSystem.friendsList.contains(super.username) ? TriBool.TriBool_true : TriBool.TriBool_false;
|
|
}
|
|
|
|
@ObfuscatedName("p")
|
|
@ObfuscatedSignature(
|
|
signature = "(I)V",
|
|
garbageValue = "-1980920067"
|
|
)
|
|
@Export("clearIsIgnored")
|
|
void clearIsIgnored() {
|
|
this.ignored = TriBool.TriBool_unknown;
|
|
}
|
|
|
|
@ObfuscatedName("k")
|
|
@ObfuscatedSignature(
|
|
signature = "(B)Z",
|
|
garbageValue = "15"
|
|
)
|
|
@Export("isIgnored")
|
|
public final boolean isIgnored() {
|
|
if (this.ignored == TriBool.TriBool_unknown) {
|
|
this.fillIsIgnored();
|
|
}
|
|
|
|
return this.ignored == TriBool.TriBool_true;
|
|
}
|
|
|
|
@ObfuscatedName("l")
|
|
@ObfuscatedSignature(
|
|
signature = "(I)V",
|
|
garbageValue = "-1426345969"
|
|
)
|
|
@Export("fillIsIgnored")
|
|
void fillIsIgnored() {
|
|
this.ignored = ArchiveLoader.friendSystem.ignoreList.contains(super.username) ? TriBool.TriBool_true : TriBool.TriBool_false;
|
|
}
|
|
}
|