Class BMNMetadata

java.lang.Object
com.technicjelle.BMUtils.BMNative.BMNMetadata

public class BMNMetadata extends Object
Utility functions for interfacing with the metadata of native BlueMap addons. (bluemap.addon.json)
  • Method Details

    • getAddonID

      public static String getAddonID(ClassLoader classLoader) throws IOException
      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

      public static String getKey(ClassLoader classLoader, String key) throws IOException
      Gets any arbitrary key from the addon metadata file. (bluemap.addon.json)
      Parameters:
      classLoader - The class loader of the addon
      key - The key to get
      Returns:
      The value of the key
      Throws:
      IOException - If the metadata file could not be read