Package ovh.mythmc.social.api.user
Interface SocialUserService
- All Known Implementing Classes:
BukkitSocialUserService
public interface SocialUserService
Represents a class capable of holding all
SocialUsers present
in the server.-
Method Summary
Modifier and TypeMethodDescriptionget()Gets all currentSocialUsers in this serverGets a specificSocialUserby itsUUID.getOrCreate(@NotNull UUID uuid) Gets a specificSocialUserby itsUUID.default Collection<SocialUser> Gets allSocialUsers with the spy feature on.default Collection<SocialUser> Gets allSocialUsers with the spy feature on in a specificSimpleChatChannel.Gets theIdentityResolverof this server
-
Method Details
-
identityResolver
Gets theIdentityResolverof this server- Returns:
- the
IdentityResolverof this server
-
get
Gets all currentSocialUsers in this server- Returns:
- a
Setwith everySocialUserin the server
-
getOrCreate
Gets a specificSocialUserby itsUUID.If the
SocialUserdoesn't exist, it will be created by the service.- Parameters:
uuid- theUUIDof the user- Returns:
- a
SocialUsermatching theUUID
-
getByUuid
Gets a specificSocialUserby itsUUID.- Parameters:
uuid- theUUIDof the user- Returns:
- an
Optionalcontaining theSocialUserif present, or an emptyOptionalotherwise
-
getSocialSpyUsers
Gets allSocialUsers with the spy feature on.- Returns:
- a
Collectionwith allSocialUsers with the spy feature on
-
getSocialSpyUsersInChannel
default Collection<SocialUser> getSocialSpyUsersInChannel(@NotNull @NotNull SimpleChatChannel channel) Gets allSocialUsers with the spy feature on in a specificSimpleChatChannel.- Parameters:
channel- theSimpleChatChannelto get the users from- Returns:
- a
Collectionwith everySocialUserwith the spy feature on in theSimpleChatChannel
-