Class BMNMetadata
java.lang.Object
com.technicjelle.BMUtils.BMNative.BMNMetadata
Utility functions for interfacing with the metadata of native BlueMap addons.
(
bluemap.addon.json)-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetAddonID(ClassLoader classLoader) Gets the addon's ID from the addon metadata filestatic StringgetKey(ClassLoader classLoader, String key) Gets any arbitrary key from the addon metadata file
-
Method Details
-
getAddonID
Gets the addon's ID from the addon metadata file. (bluemap.addon.json)- Parameters:
classLoader- The class loader of the addon- Returns:
- The addon's ID
- Throws:
IOException- If the metadata file could not be read
-
getKey
Gets any arbitrary key from the addon metadata file. (bluemap.addon.json)- Parameters:
classLoader- The class loader of the addonkey- The key to get- Returns:
- The value of the key
- Throws:
IOException- If the metadata file could not be read
-