Class TcdCommonsWebApi

java.lang.Object
io.github.thecsdev.tcdcommons.util.io.http.TcdCommonsWebApi

public final class TcdCommonsWebApi extends Object
  • 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 a JsonArray containing TcdWebApiPersons 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 a JsonArray containing TcdWebApiPersons 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.