Package ovh.mythmc.social.api
Class SocialSupplier
java.lang.Object
ovh.mythmc.social.api.SocialSupplier
Internal holder that stores the active
Social instance.
Platform implementations call set(Social) once during startup.
All other callers should use Social.get() instead of this class
directly.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SocialSupplier
public SocialSupplier()
-
-
Method Details
-
set
Registers the activeSocialinstance.- Parameters:
s- the instance to register- Throws:
AlreadyInitializedException- if the API has already been initialisedNullPointerException- ifsisnull
-
get
Returns the activeSocialinstance.- Returns:
- the social API instance
-