95 lines
2.2 KiB
Java
95 lines
2.2 KiB
Java
import net.runelite.mapping.Export;
|
|
import net.runelite.mapping.Implements;
|
|
import net.runelite.mapping.ObfuscatedName;
|
|
import net.runelite.mapping.ObfuscatedSignature;
|
|
|
|
@ObfuscatedName("jz")
|
|
@Implements("ClanMate")
|
|
public class ClanMate extends Buddy {
|
|
@ObfuscatedName("h")
|
|
@ObfuscatedSignature(
|
|
descriptor = "Lkn;"
|
|
)
|
|
@Export("friend")
|
|
TriBool friend;
|
|
@ObfuscatedName("v")
|
|
@ObfuscatedSignature(
|
|
descriptor = "Lkn;"
|
|
)
|
|
@Export("ignored")
|
|
TriBool ignored;
|
|
|
|
ClanMate() {
|
|
this.friend = TriBool.TriBool_unknown; // L: 6
|
|
this.ignored = TriBool.TriBool_unknown; // L: 7
|
|
} // L: 9
|
|
|
|
@ObfuscatedName("h")
|
|
@ObfuscatedSignature(
|
|
descriptor = "(I)V",
|
|
garbageValue = "-1060606481"
|
|
)
|
|
@Export("clearIsFriend")
|
|
void clearIsFriend() {
|
|
this.friend = TriBool.TriBool_unknown; // L: 12
|
|
} // L: 13
|
|
|
|
@ObfuscatedName("v")
|
|
@ObfuscatedSignature(
|
|
descriptor = "(I)Z",
|
|
garbageValue = "-1638349091"
|
|
)
|
|
@Export("isFriend")
|
|
public final boolean isFriend() {
|
|
if (this.friend == TriBool.TriBool_unknown) { // L: 16
|
|
this.fillIsFriend(); // L: 17
|
|
}
|
|
|
|
return this.friend == TriBool.TriBool_true; // L: 19
|
|
}
|
|
|
|
@ObfuscatedName("x")
|
|
@ObfuscatedSignature(
|
|
descriptor = "(B)V",
|
|
garbageValue = "62"
|
|
)
|
|
@Export("fillIsFriend")
|
|
void fillIsFriend() {
|
|
this.friend = MilliClock.friendSystem.friendsList.contains(super.username) ? TriBool.TriBool_true : TriBool.TriBool_false; // L: 23
|
|
} // L: 24
|
|
|
|
@ObfuscatedName("w")
|
|
@ObfuscatedSignature(
|
|
descriptor = "(I)V",
|
|
garbageValue = "-1987329827"
|
|
)
|
|
@Export("clearIsIgnored")
|
|
void clearIsIgnored() {
|
|
this.ignored = TriBool.TriBool_unknown; // L: 27
|
|
} // L: 28
|
|
|
|
@ObfuscatedName("t")
|
|
@ObfuscatedSignature(
|
|
descriptor = "(I)Z",
|
|
garbageValue = "-842680773"
|
|
)
|
|
@Export("isIgnored")
|
|
public final boolean isIgnored() {
|
|
if (this.ignored == TriBool.TriBool_unknown) { // L: 31
|
|
this.fillIsIgnored(); // L: 32
|
|
}
|
|
|
|
return this.ignored == TriBool.TriBool_true; // L: 34
|
|
}
|
|
|
|
@ObfuscatedName("j")
|
|
@ObfuscatedSignature(
|
|
descriptor = "(B)V",
|
|
garbageValue = "-77"
|
|
)
|
|
@Export("fillIsIgnored")
|
|
void fillIsIgnored() {
|
|
this.ignored = MilliClock.friendSystem.ignoreList.contains(super.username) ? TriBool.TriBool_true : TriBool.TriBool_false; // L: 38
|
|
} // L: 39
|
|
}
|