api: add methods to get clan owner and chat name

Co-authored-by: trimbe <benno.tremback@gmail.com>
This commit is contained in:
Adam
2019-03-02 18:59:13 -05:00
parent facf438b50
commit e5f9db4fb4
3 changed files with 34 additions and 0 deletions

View File

@@ -1055,6 +1055,20 @@ public interface Client extends GameEngine
*/ */
ClanMember[] getClanMembers(); ClanMember[] getClanMembers();
/**
* Gets the clan owner of the currently joined clan chat
*
* @return
*/
String getClanOwner();
/**
* Gets the clan chat name of the currently joined clan chat
*
* @return
*/
String getClanChatName();
/** /**
* Gets an array of players in the friends list. * Gets an array of players in the friends list.
* *

View File

@@ -727,6 +727,20 @@ public abstract class RSClientMixin implements RSClient
return clanMemberManager != null ? getClanMemberManager().getNameables() : null; return clanMemberManager != null ? getClanMemberManager().getNameables() : null;
} }
@Inject
@Override
public String getClanOwner()
{
return getClanMemberManager().getClanOwner();
}
@Inject
@Override
public String getClanChatName()
{
return getClanMemberManager().getClanChatName();
}
@Inject @Inject
@Override @Override
public Friend[] getFriends() public Friend[] getFriends()

View File

@@ -24,7 +24,13 @@
*/ */
package net.runelite.rs.api; package net.runelite.rs.api;
import net.runelite.mapping.Import;
public interface RSClanMemberManager extends RSNameableContainer<RSClanMember> public interface RSClanMemberManager extends RSNameableContainer<RSClanMember>
{ {
@Import("clanOwner")
String getClanOwner();
@Import("clanChatName")
String getClanChatName();
} }