Skip to content

Commit

Permalink
Add a ways to get the webroot-path
Browse files Browse the repository at this point in the history
  • Loading branch information
TBlueF committed Sep 19, 2021
1 parent c545057 commit e22caff
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/main/java/de/bluecolored/bluemap/api/BlueMapAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

import java.awt.image.BufferedImage;
import java.io.IOException;
import java.nio.file.Path;
import java.util.*;
import java.util.concurrent.ExecutionException;
import java.util.function.Consumer;
Expand Down Expand Up @@ -105,7 +106,13 @@ public abstract class BlueMapAPI {
* @throws IOException If an {@link IOException} is thrown while writing the image
*/
public abstract String createImage(BufferedImage image, String path) throws IOException;


/**
* Getter for the configured web-root folder
* @return The {@link Path} of the web-root folder
*/
public abstract Path getWebRoot();

/**
* Getter for the installed BlueMap version
* @return the version-string
Expand Down

0 comments on commit e22caff

Please sign in to comment.