Class Clan


  • public class Clan
    extends java.lang.Object
    Created by Nezz on 5/10/2016.
    • Constructor Summary

      Constructors 
      Constructor Description
      Clan()
      Deprecated.
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static java.lang.String getChatName()
      Gets clan chat name
      static java.lang.String getChatOwner()
      Gets clan chat owner's name
      static Clan getClan()
      Deprecated.
      static int getClanSize()
      Gets the current size of the clan chat
      static java.util.List<ClanMember> getMembers()
      Gets a list of the clan members in your chat
      static boolean inChat()
      Checks whether you're in a clan chat
      static boolean joinChat​(java.lang.String clanChat)
      Joins a clan chat specified by the name
      static boolean leaveChat()
      Leaves the current clan chat you're in
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Clan

        @Deprecated
        public Clan()
        Deprecated.
    • Method Detail

      • getClan

        @Deprecated
        public static Clan getClan()
        Deprecated.
      • joinChat

        public static boolean joinChat​(java.lang.String clanChat)
        Joins a clan chat specified by the name
        Parameters:
        clanChat - Name of the owner of the chat to join
        Returns:
        True if successfully joined chat or already in chat, false if failed to join chat
      • leaveChat

        public static boolean leaveChat()
        Leaves the current clan chat you're in
        Returns:
        True if not in chat or successfully leave chat, false if failed to leave chat
      • inChat

        public static boolean inChat()
        Checks whether you're in a clan chat
        Returns:
        True if in chat, false if not
      • getMembers

        public static java.util.List<ClanMember> getMembers()
        Gets a list of the clan members in your chat
        Returns:
        List of ClanMember, empty List if not in chat
      • getClanSize

        public static int getClanSize()
        Gets the current size of the clan chat
        Returns:
        0 if not in chat, otherwise count of how many people are in clan chat
      • getChatName

        public static java.lang.String getChatName()
        Gets clan chat name
        Returns:
        Clan chat name formatted with _'s instead of spaces, null if not in chat
      • getChatOwner

        public static java.lang.String getChatOwner()
        Gets clan chat owner's name
        Returns:
        Clan chat owner's name formatted with _'s instead of spaces, null if not in chat