Package com.mrivanplays.skins.api
Interface DataProvider
-
public interface DataProvider
Represents a data provider, providing needed plugin data.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull MojangResponse
retrieveSkinResponse(@NotNull String name, @NotNull UUID uuid)
Skins calls this method whenever it needs to get a skin directly from the api.@Nullable UUID
retrieveUuid(@NotNull String name)
Skins calls this method whenever it needs the original uuid of the specified player name.
-
-
-
Method Detail
-
retrieveUuid
@Nullable @Nullable UUID retrieveUuid(@NotNull @NotNull String name)
Skins calls this method whenever it needs the original uuid of the specified player name. You are able to apply caching strategies on this.- Parameters:
name
- name of the player we need the uuid of- Returns:
- uuid, or null if not found
-
retrieveSkinResponse
@NotNull @NotNull MojangResponse retrieveSkinResponse(@NotNull @NotNull String name, @NotNull @NotNull UUID uuid)
Skins calls this method whenever it needs to get a skin directly from the api. We recommend to not cache any data as Skins already caches further in the code.- Parameters:
name
- name of the player we want the skin ofuuid
- uuid of the player we want the skin of- Returns:
- response
-
-