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 voidfetch(String name, Consumer<ProfileRequest> handler) Fetch a profile.static voidfetchForced(String name, Consumer<ProfileRequest> handler) static voidreset()Clear all queued and cached requests.static voidshutdown()
-
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()
-