Package net.dzikoysk.funnyguilds.guild
Class GuildManager
java.lang.Object
net.dzikoysk.funnyguilds.guild.GuildManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd guild to storage.voidDeletes all loaded guilds dataintvoiddeleteGuild(FunnyGuilds plugin, Guild guild) Delete guild in every possible way.panda.std.Option<Guild>findByName(String name) Gets the guild.panda.std.Option<Guild>findByName(String name, boolean ignoreCase) Gets the guild.findByNames(Collection<String> names) Gets the set of guilds from collection of strings (names).panda.std.Option<Guild>Gets the guild.panda.std.Option<Guild>Gets the guild.findByTags(Collection<String> tags) Gets the set of guilds from collection of strings (tags).panda.std.Option<Guild>findByUuid(UUID uuid) Gets the guild.Gets the copied set of guilds.booleannameExists(String name) Checks if guild with given name exists.voidremoveGuild(Guild guild) Remove guild from storage.voidspawnHeart(GuildEntityHelper guildEntityHelper, Guild guild) Spawn heart for guild.booleanChecks if guild with given tag exists.
-
Constructor Details
-
GuildManager
-
-
Method Details
-
countGuilds
public int countGuilds() -
getGuilds
Gets the copied set of guilds.- Returns:
- set of guild
-
clearGuilds
public void clearGuilds()Deletes all loaded guilds data -
findByNames
Gets the set of guilds from collection of strings (names).- Parameters:
names- collection of names- Returns:
- set of guild
-
findByTags
Gets the set of guilds from collection of strings (tags).- Parameters:
tags- collection of tags- Returns:
- set of guild
-
findByUuid
Gets the guild.- Parameters:
uuid- the uuid of guild- Returns:
- the guild
-
findByName
Gets the guild.- Parameters:
name- the name of guildignoreCase- ignore the case of the name- Returns:
- the guild
-
findByName
Gets the guild.- Parameters:
name- the name of guild- Returns:
- the guild
-
findByTag
Gets the guild.- Parameters:
tag- the tag of guildignoreCase- ignore the case of the tag- Returns:
- the guild
-
findByTag
Gets the guild.- Parameters:
tag- the tag of guild- Returns:
- the guild
-
addGuild
Add guild to storage. If you think you should use this method you probably shouldn't.- Parameters:
guild- guild to add
-
removeGuild
Remove guild from storage. If you think you should use this method you probably shouldn't - instead usedeleteGuild(FunnyGuilds, Guild).- Parameters:
guild- guild to remove
-
deleteGuild
Delete guild in every possible way.- Parameters:
guild- guild to delete
-
nameExists
Checks if guild with given name exists.- Parameters:
name- the guild name to check if exists- Returns:
- if guild with given name exists
-
tagExists
Checks if guild with given tag exists.- Parameters:
tag- the guild tag to check if exists- Returns:
- if guild with given tag exists
-
spawnHeart
Spawn heart for guild. You probably shouldn't use this method.- Parameters:
guild- the guild for which heart should be spawned
-