Package net.mcreator.io.net.api
Class D8WebAPI
java.lang.Object
net.mcreator.io.net.api.D8WebAPI
- All Implemented Interfaces:
IWebAPI
,IUpdateAPI
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getModOfTheWeekData
(CompletableFuture<String[]> data) API requestgetSearchURL
(String searchTerm) API URL generatorvoid
getWebsiteNews
(CompletableFuture<String[]> data) API requestboolean
initAPI()
Initializes API, called on MCreator launch, while loading data
-
Constructor Details
-
D8WebAPI
public D8WebAPI()
-
-
Method Details
-
initAPI
public boolean initAPI()Description copied from interface:IWebAPI
Initializes API, called on MCreator launch, while loading data -
getUpdateInfo
- Specified by:
getUpdateInfo
in interfaceIUpdateAPI
-
getSearchURL
Description copied from interface:IWebAPI
API URL generator- Specified by:
getSearchURL
in interfaceIWebAPI
- Parameters:
searchTerm
- Terms that should be searched- Returns:
- Search URL for the website for the given term
-
getWebsiteNews
Description copied from interface:IWebAPI
API request- Specified by:
getWebsiteNews
in interfaceIWebAPI
-
getModOfTheWeekData
API requestReturns as promise 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
- Specified by:
getModOfTheWeekData
in interfaceIWebAPI
-