Updated Home (markdown)
parent
e21fecfa63
commit
76dec86a21
2
Home.md
2
Home.md
|
@ -13,7 +13,7 @@ The `BlueMapAPI` class has some static methods that will be your entry-point int
|
|||
// Directly getting the api (wrapped in an Optional)
|
||||
Optional<BlueMapAPI> optionalApi = BlueMapAPI.getInstance();
|
||||
|
||||
// Directly using the API if present
|
||||
// Directly using the API if it is enabled
|
||||
BlueMapAPI.getInstance().ifPresent(api -> {
|
||||
//code executed when the api is enabled (skipped if the api is not enabled)
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue