Class GuildManager

java.lang.Object
net.dzikoysk.funnyguilds.guild.GuildManager

public class GuildManager extends Object
  • Constructor Details

  • Method Details

    • countGuilds

      public int countGuilds()
    • getGuilds

      public Set<Guild> getGuilds()
      Gets the copied set of guilds.
      Returns:
      set of guild
    • clearGuilds

      public void clearGuilds()
      Deletes all loaded guilds data
    • findByNames

      public Set<Guild> findByNames(Collection<String> names)
      Gets the set of guilds from collection of strings (names).
      Parameters:
      names - collection of names
      Returns:
      set of guild
    • findByTags

      public Set<Guild> findByTags(Collection<String> tags)
      Gets the set of guilds from collection of strings (tags).
      Parameters:
      tags - collection of tags
      Returns:
      set of guild
    • findByUuid

      public panda.std.Option<Guild> findByUuid(UUID uuid)
      Gets the guild.
      Parameters:
      uuid - the uuid of guild
      Returns:
      the guild
    • findByName

      public panda.std.Option<Guild> findByName(String name, boolean ignoreCase)
      Gets the guild.
      Parameters:
      name - the name of guild
      ignoreCase - ignore the case of the name
      Returns:
      the guild
    • findByName

      public panda.std.Option<Guild> findByName(String name)
      Gets the guild.
      Parameters:
      name - the name of guild
      Returns:
      the guild
    • findByTag

      public panda.std.Option<Guild> findByTag(String tag, boolean ignoreCase)
      Gets the guild.
      Parameters:
      tag - the tag of guild
      ignoreCase - ignore the case of the tag
      Returns:
      the guild
    • findByTag

      public panda.std.Option<Guild> findByTag(String tag)
      Gets the guild.
      Parameters:
      tag - the tag of guild
      Returns:
      the guild
    • addGuild

      public Guild addGuild(Guild guild)
      Add guild to storage. If you think you should use this method you probably shouldn't.
      Parameters:
      guild - guild to add
    • removeGuild

      public void removeGuild(Guild guild)
      Remove guild from storage. If you think you should use this method you probably shouldn't - instead use deleteGuild(FunnyGuilds, Guild).
      Parameters:
      guild - guild to remove
    • deleteGuild

      public void deleteGuild(FunnyGuilds plugin, Guild guild)
      Delete guild in every possible way.
      Parameters:
      guild - guild to delete
    • nameExists

      public boolean nameExists(String name)
      Checks if guild with given name exists.
      Parameters:
      name - the guild name to check if exists
      Returns:
      if guild with given name exists
    • tagExists

      public boolean tagExists(String tag)
      Checks if guild with given tag exists.
      Parameters:
      tag - the guild tag to check if exists
      Returns:
      if guild with given tag exists
    • spawnHeart

      public void spawnHeart(GuildEntityHelper guildEntityHelper, Guild guild)
      Spawn heart for guild. You probably shouldn't use this method.
      Parameters:
      guild - the guild for which heart should be spawned