Interface IWebAPI

All Superinterfaces:
IUpdateAPI
All Known Implementing Classes:
D8WebAPI

public interface IWebAPI extends IUpdateAPI
  • Method Details

    • initAPI

      boolean initAPI()
      Initializes API, called on MCreator launch, while loading data
      Returns:
      true if the connection was successful - can be used for internet connectivity testing
    • getWebsiteNews

      void getWebsiteNews(CompletableFuture<String[]> data)
      API request
    • getModOfTheWeekData

      void getModOfTheWeekData(CompletableFuture<String[]> data)
      API request

      Returns mod of the week data in String array format, where index

      • [0] - mod of the week name
      • [1] - mod of the week page URL
      • [2] - mod of the week Minecraft version
      • [3] - mod of the week author URL
      • [4] - mod of the week picture URL
    • getSearchURL

      String getSearchURL(String searchTerm)
      API URL generator
      Parameters:
      searchTerm - Terms that should be searched
      Returns:
      Search URL for the website for the given term