Class BMNConfigDirectory
java.lang.Object
com.technicjelle.BMUtils.BMNative.BMNConfigDirectory
BMUtils allocates a config directory for every native BlueMap addon.
Here are functions to retrieve that directory.
The directory name is the addon's ID.
Here are functions to retrieve that directory.
The directory name is the addon's ID.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Utility functions for copying stuff to the config directory that BMUtils allocated. -
Method Summary
Modifier and TypeMethodDescriptionstatic Path
getAllocatedDirectory
(BlueMapAPI api, ClassLoader classLoader) This function gives you the path to your addon's allocated config directory.static Path
Gets the directory where BlueMap Native Addons are stored.
Probably shouldn't be used directly, usegetAllocatedDirectory(BlueMapAPI, ClassLoader)
instead.static Path
Gets the directory where the server stores the mod/plugin configuration directories.
-
Method Details
-
getAllocatedDirectory
public static Path getAllocatedDirectory(BlueMapAPI api, ClassLoader classLoader) throws IOException This function gives you the path to your addon's allocated config directory.- Parameters:
api
- The BlueMapAPI instanceclassLoader
- The class loader of the addon- Returns:
- The allocated config directory
- Throws:
IOException
- If the directory could not be created
-
getServerConfigDirectory
Gets the directory where the server stores the mod/plugin configuration directories.- Paper & Spigot:
/plugins/
- Forge & Fabric:
/config/
- CLI:
./
(next to thebluemap-(version)-cli.jar
)
Probably shouldn't be used directly, usegetAllocatedDirectory(BlueMapAPI, ClassLoader)
instead.- Parameters:
api
- The BlueMapAPI instance- Returns:
- The server config directory
- Paper & Spigot:
-
getPacksDirectory
Gets the directory where BlueMap Native Addons are stored.
Probably shouldn't be used directly, usegetAllocatedDirectory(BlueMapAPI, ClassLoader)
instead.- Parameters:
api
- The BlueMapAPI instance- Returns:
- BlueMap's own addons directory
-