Interface DataProvider


  • public interface DataProvider
    Represents a data provider, providing needed plugin data.
    • 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 of
        uuid - uuid of the player we want the skin of
        Returns:
        response