Class ProfileFetcher
java.lang.Object
net.citizensnpcs.npc.skin.profile.ProfileFetcher
Fetches game profiles that include skin data from Mojang servers.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
fetch
(String name, ProfileFetchHandler handler) Fetch a profile.static void
fetchForced
(String name, ProfileFetchHandler handler) static void
reset()
Clear all queued and cached requests.static void
shutdown()
-
Method Details
-
fetch
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
-
reset
public static void reset()Clear all queued and cached requests. -
shutdown
public static void shutdown()
-