Class Clan


  • public class Clan
    extends Object
    Used to get data from GommeHD.net clans
    • Constructor Detail

      • Clan

        public Clan​(String id)
             throws ClanNotFoundException
        Clan instance creation using id
        Checks if the clan exists, if it does, the ID is saved
        Parameters:
        id - Clantag/clan name used to initiate the object
        Throws:
        ClanNotFoundException - Thrown when the clan with the specified id was not found
    • Method Detail

      • getName

        public String getName()
        Retrieve the name of the clan
        Returns:
        clan name
      • getTag

        public String getTag()
        Retrieve the tag of the clan
        Returns:
        clan tag
      • getUuid

        public String getUuid()
        Retrieve the uuid of the clan
        Returns:
        clan uuid
      • getFans

        public Integer getFans()
        Retrieve the number of fans of the clan
        Returns:
        number of fans
      • isDeleted

        public Boolean isDeleted()
        Check if the clan is deleted
        Returns:
        boolean
      • getMembers

        public List<ClanMember> getMembers()
        Retrieve clanmembers as a list
        Returns:
        clan members list
      • getPageContent

        public String getPageContent()
        Retrieve the page content of the clan
        Returns:
        clanpage
      • getAvatarAsLink

        public String getAvatarAsLink()
        Retrieve a link to the avatar of the clan
        Returns:
        link to avatar / can be null
      • getTwitter

        public String getTwitter()
        Retrieve twitter information of the clan
        Returns:
        twitter information / can be null
      • getYoutube

        public String getYoutube()
        Retrieve youtube information of the clan
        Returns:
        youtube information / can be null
      • getHomepage

        public String getHomepage()
        Retrieve the number of comments of the clan
        Returns:
        number of comments
      • getBedwarsStats

        public GameModeStats getBedwarsStats()
        Get clan stats from game mode Bedwars as GameModeStats object
        Returns:
        GameModeStats
      • getSurvivalGamesStats

        public GameModeStats getSurvivalGamesStats()
        Get clan stats from game mode SurvivalGames as GameModeStats object
        Returns:
        GameModeStats
      • getCoresStats

        public GameModeStats getCoresStats()
        Get clan stats from game mode Cores as GameModeStats object
        Returns:
        GameModeStats