Class PlayerHeads


  • public final class PlayerHeads
    extends Object
    PlayerHeads class for managing API provisions.
    Author:
    crashdemons (crashenator at gmail.com)
    • Method Detail

      • getApiInstance

        public static PlayerHeadsAPI getApiInstance()
        Gets the instance of the PlayerHeads API
        Returns:
        the PlayerHeads API instance, or null if the plugin is not available or you accidentally shaded the API into your plugin.
      • setApiInstance

        @Deprecated
        public static void setApiInstance​(PlayerHeadsAPI api)
        Deprecated.
        This method is intended only for internal PlayerHeads use.
        Sets the API instance internally for PlayerHeads. This method should not be called outside of the plugin and using it will introduce instability.
        Parameters:
        api - the instance of the class implementing the API to provide to plugin developers.