A small library with a collection of useful functions for BlueMap addons.
Should work with any plugin/mod-loader. Currently only tested with Paper. Please let me know if you have any issues when using other platforms!
Visit https://jitpack.io/#TechnicJelle/BMUtils for details on how to install this library.
Please see the javadoc for the full API reference: technicjelle.com/BMUtils
This function copies any resource file from your jar to the BlueMap assets folder.
Useful for adding custom icons, scripts, or styles from your own addon.
copyJarResourceToBlueMap(BlueMapAPI, ClassLoader, String fromResource, String toAsset, boolean overwrite)
This function copies any file to the BlueMap assets folder.
Useful for copying user-provided assets to BlueMap,
from a configuration directory for example.
copyFileToBlueMap(BlueMapAPI, Path from, String toAsset, boolean overwrite)
This function copies any stream to the BlueMap assets folder.
Useful for when you have a stream of data, for example from a URL.
copyStreamToBlueMap(BlueMapAPI, InputStream in, String toAsset, boolean overwrite)
This function returns the address of a player head icon.
Useful when you want to use a playerhead from the map.
For example, when adding custom icons to the map that involve the player head.
getPlayerHeadIconAddress(BlueMapAPI, UUID playerUUID, BlueMapMap blueMapMap)
If you have any suggestions for more useful functions to add, please let me know by creating an issue on GitHub.
To get support with this library, join the BlueMap Discord server and ask your questions in #3rd-party-support. You're welcome to ping me, @TechnicJelle.