You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Creates an image-file with the given {@link BufferedImage} somewhere in the web-root, so it can be used in the web-app (e.g. for {@link Marker}-icons).
100
-
*
101
-
* <p>The given <code>path</code> is used as file-name and (separated with '/') optional folders to organize the image-files. Do NOT include the file-ending! (e.g. <code>"someFolder/somePOIIcon"</code> will result in a file "somePOIIcon.png" in a folder "someFolder").</p>
102
-
* <p>If the image file with the given path already exists, it will be replaced.</p>
103
-
*
104
-
* @param image the image to create
105
-
* @param path the path/name of this image, the separator-char is '/'
106
-
* @return the relative address of the image in the web-app,
107
-
* which can be used as it is e.g. in the {@link de.bluecolored.bluemap.api.marker.POIMarker#setIcon(String, Vector2i)} method
108
-
* @throws IOException If an {@link IOException} is thrown while writing the image
* Lists all images that are available. This includes all images previously created with the {@link #createImage(BufferedImage, String)}
114
-
* function, but might include more.
115
-
* @return A map of available images where:
116
-
* <ul>
117
-
* <li>the <b>key</b> is the image path how it would be used in the "path" parameter of the {@link #createImage(BufferedImage, String)} method</li>
118
-
* <li>and the <b>value</b> is the relative address of the image. The same ones that are returned from the {@link #createImage(BufferedImage, String)} method</li>
119
-
* </ul>
120
-
* @throws IOException If an {@link IOException} is thrown while reading the images
* Register a listener that will be called when the API enables/disables
138
-
* @param listener the {@link BlueMapAPIListener}
139
-
*
140
-
* @deprecated Implementing {@link BlueMapAPIListener} can cause a ClassNotFoundException when you soft-depend on BlueMap and your plugin/mod gets used without BlueMap.
141
-
* Use {@link BlueMapAPI#onEnable(Consumer)} and {@link BlueMapAPI#onDisable(Consumer)} instead.
if (BlueMapAPI.instance != null) listener.onEnable(BlueMapAPI.instance);
147
-
}
148
-
149
-
/**
150
-
* Removes/Unregisters a previously registered listener
151
-
* @param listener the {@link BlueMapAPIListener} instance that has been registered previously
152
-
*
153
-
* @return <code>true</code> if a listener was removed as a result of this call
154
-
*
155
-
* @deprecated Implementing {@link BlueMapAPIListener} can cause a ClassNotFoundException when you soft-depend on BlueMap and your plugin/mod gets used without BlueMap.
156
-
* Use {@link BlueMapAPI#onEnable(Consumer)} and {@link BlueMapAPI#onDisable(Consumer)} instead.
0 commit comments