From c70ab29ae87cd79a3553bef4aca7fa94db577293 Mon Sep 17 00:00:00 2001
From: "Lukas Rieger (Blue)"
+ * gets closed!
* Use the returned {@link OutputStream} to write the asset-data. The asset will be added to the storage as soon as that stream
- * gets closed!
- *
+ *
* Example:
*
* try (OutputStream out = assetStorage.writeAsset("image.png")) {
* ImageIO.write(image, "png", out);
* }
*
- *
+ * Use the returned {@link InputStream} to read the asset-data.
+ *
* Example:
*
* Optional<InputStream> optIn = assetStorage.readAsset("image.png"); @@ -68,7 +67,6 @@ public interface AssetStorage { * } * } *- * * @param name The name of the asset that should be read from the storage. * @return An {@link Optional} with an {@link InputStream} when the asset is found, from which the asset can be read. * Or an empty optional if there is no asset with this name. diff --git a/src/main/java/de/bluecolored/bluemap/api/WebApp.java b/src/main/java/de/bluecolored/bluemap/api/WebApp.java index 38ee015..7088b6c 100644 --- a/src/main/java/de/bluecolored/bluemap/api/WebApp.java +++ b/src/main/java/de/bluecolored/bluemap/api/WebApp.java @@ -61,15 +61,14 @@ public interface WebApp { * This method should only be used inside the {@link Consumer} that got registered (before bluemap loaded, * pre server-start!) to {@link BlueMapAPI#onEnable(Consumer)}.
+ * Style-registrations are not persistent, register your style each time bluemap enables!
+ *
* Example:
*
* BlueMapAPI.onEnable(api -> { * api.getWebApp().registerStyle("js/my-custom-style.css"); * }); *- * * @param url The (relative) URL that links to the style.css file. The {@link #getWebRoot()}-method can be used to * create the custom file in the correct location and make it available to the web-app. */ @@ -80,15 +79,14 @@ public interface WebApp { * This method should only be used inside the {@link Consumer} that got registered (before bluemap loaded, * pre server-start!) to {@link BlueMapAPI#onEnable(Consumer)}.
+ * Script-registrations are not persistent, register your script each time bluemap enables!
+ *
* Example:
*
* BlueMapAPI.onEnable(api -> { * api.getWebApp().registerScript("js/my-custom-script.js"); * }); *- * * @param url The (relative) URL that links to the script.js file. The {@link #getWebRoot()}-method can be used to * create the custom file in the correct location and make it available to the web-app. */