Class TcdCommonsWebApi
java.lang.Object
io.github.thecsdev.tcdcommons.util.io.http.TcdCommonsWebApi
-
Method Summary
Modifier and TypeMethodDescriptionstatic final void
getFeaturedSponsorsAsync
(net.minecraft.util.thread.ThreadExecutor<?> minecraftClientOrServer, Consumer<com.google.gson.JsonArray> onReady, Consumer<Exception> onError) Asynchronously fetches and retrieves aJsonArray
containingTcdWebApiPerson
s that are "featured sponsors" of TheCSDev.static final void
getSpecialThanksAsync
(net.minecraft.util.thread.ThreadExecutor<?> minecraftClientOrServer, Consumer<com.google.gson.JsonArray> onReady, Consumer<Exception> onError) Asynchronously fetches and retrieves aJsonArray
containingTcdWebApiPerson
s that are given a "special thanks".
-
Method Details
-
getSpecialThanksAsync
public static final void getSpecialThanksAsync(net.minecraft.util.thread.ThreadExecutor<?> minecraftClientOrServer, Consumer<com.google.gson.JsonArray> onReady, Consumer<Exception> onError) Asynchronously fetches and retrieves aJsonArray
containingTcdWebApiPerson
s that are given a "special thanks".- Parameters:
minecraftClientOrServer
- The Minecraft client or server instance.onReady
- Invoked when the retrieval succeeds.onError
- Invoked when the retrieval fails.
-
getFeaturedSponsorsAsync
public static final void getFeaturedSponsorsAsync(net.minecraft.util.thread.ThreadExecutor<?> minecraftClientOrServer, Consumer<com.google.gson.JsonArray> onReady, Consumer<Exception> onError) Asynchronously fetches and retrieves aJsonArray
containingTcdWebApiPerson
s that are "featured sponsors" of TheCSDev.- Parameters:
minecraftClientOrServer
- The Minecraft client or server instance.onReady
- Invoked when the retrieval succeeds.onError
- Invoked when the retrieval fails.
-