A type representing data about a mod, as retrieved from its metadata file.
Static methods
Constructor
Variables
apiVersion:Version
A version number for the API used by the mod. Used to prevent compatibility issues with mods when the application changes.
author:String
A deprecated field representing the mod's author.
Please use the contributors
field instead.
contributors:Array<ModContributor>
A list of contributors to the mod. Provides data about their roles as well as optional contact information.
dependencies:ModDependencies
A list of dependencies. These other mods must be also be loaded in order for this mod to load, and this mod must be loaded after the dependencies.
homepage:String
A link to the homepage for a mod. Should provide a URL where the mod can be downloaded from.
icon:Bytes = null
Binary data containing information on the mod's icon file, if it exists. This is useful when you want to display the mod's icon in your application's mod menu.
metadata:Map<String, String>
metadata
provides an optional list of keys.
These can provide additional information about the mod, specific to your application.
modVersion:Version
A version number for the mod itself. Should be provided in the Semantic Versioning format.
optionalDependencies:ModDependencies
A list of dependencies. This mod must be loaded after the optional dependencies, but those mods do not necessarily need to be loaded.