Class ProfileFetcher

java.lang.Object
net.citizensnpcs.npc.skin.profile.ProfileFetcher

public class ProfileFetcher extends Object
Fetches game profiles that include skin data from Mojang servers.
See Also:
  • ProfileFetchThread
  • Method Details

    • fetch

      public static void fetch(String name, @Nullable ProfileFetchHandler handler)
      Fetch a profile.
      Parameters:
      name - The name of the player the profile belongs to.
      handler - Optional handler to handle the result. Handler always invoked from the main thread.
    • fetchForced

      public static void fetchForced(String name, ProfileFetchHandler handler)
    • reset

      public static void reset()
      Clear all queued and cached requests.
    • shutdown

      public static void shutdown()