|
Quilt Loader 1
|
The metadata of a mod. More...
Public Member Functions | |
| String | getType () |
| Returns the type of the mod. | |
| String | getId () |
| Returns the mod's ID. | |
| Collection< String > | getProvides () |
| Returns the mod's ID provides. | |
| Version | getVersion () |
| Returns the mod's version. | |
| ModEnvironment | getEnvironment () |
| Returns the mod's environment. | |
| Collection< ModDependency > | getDependencies () |
| Returns all of the mod's dependencies. | |
| default Collection< ModDependency > | getDepends () |
| Returns the mod's required dependencies, without which the Loader will terminate loading. | |
| default Collection< ModDependency > | getRecommends () |
| Returns the mod's recommended dependencies, without which the Loader will emit a warning. | |
| default Collection< ModDependency > | getSuggests () |
| Returns the mod's suggested dependencies. | |
| default Collection< ModDependency > | getConflicts () |
| Returns the mod's conflicts, with which the Loader will emit a warning. | |
| default Collection< ModDependency > | getBreaks () |
| Returns the mod's conflicts, with which the Loader will terminate loading. | |
| String | getName () |
| Returns the mod's display name. | |
| String | getDescription () |
| Returns the mod's description. | |
| Collection< Person > | getAuthors () |
| Returns the mod's authors. | |
| Collection< Person > | getContributors () |
| Returns the mod's contributors. | |
| ContactInformation | getContact () |
| Returns the mod's contact information. | |
| Collection< String > | getLicense () |
| Returns the mod's licenses. | |
| Optional< String > | getIconPath (int size) |
| Gets the path to an icon. | |
| boolean | containsCustomValue (String key) |
Returns if the mod's fabric.mod.json declares a custom value under key. | |
| CustomValue | getCustomValue (String key) |
Returns the mod's fabric.mod.json declared custom value under key. | |
| Map< String, CustomValue > | getCustomValues () |
| Gets all custom values defined by this mod. | |
| boolean | containsCustomElement (String key) |
The metadata of a mod.
| boolean net.fabricmc.loader.api.metadata.ModMetadata.containsCustomElement | ( | String | key | ) |
containsCustomValue instead, this will be removed (can't expose GSON types)! Implemented in org.quiltmc.loader.impl.fabric.metadata.AbstractModMetadata, and org.quiltmc.loader.impl.metadata.GeneralExt2FabricMetadata.
| boolean net.fabricmc.loader.api.metadata.ModMetadata.containsCustomValue | ( | String | key | ) |
Returns if the mod's fabric.mod.json declares a custom value under key.
| key | the key |
Implemented in org.quiltmc.loader.impl.fabric.metadata.AbstractModMetadata, org.quiltmc.loader.impl.fabric.metadata.BuiltinModMetadata, and org.quiltmc.loader.impl.metadata.GeneralExt2FabricMetadata.
| Collection< Person > net.fabricmc.loader.api.metadata.ModMetadata.getAuthors | ( | ) |
Returns the mod's authors.
Implemented in org.quiltmc.loader.impl.fabric.metadata.BuiltinModMetadata, and org.quiltmc.loader.impl.metadata.GeneralExt2FabricMetadata.
|
inline |
Returns the mod's conflicts, with which the Loader will terminate loading.
getDependencies() and filter for ModDependency.Kind#BREAKS instead Implemented in org.quiltmc.loader.impl.metadata.GeneralExt2FabricMetadata.
|
inline |
Returns the mod's conflicts, with which the Loader will emit a warning.
getDependencies() and filter for ModDependency.Kind#CONFLICTS instead Implemented in org.quiltmc.loader.impl.metadata.GeneralExt2FabricMetadata.
| ContactInformation net.fabricmc.loader.api.metadata.ModMetadata.getContact | ( | ) |
Returns the mod's contact information.
Implemented in org.quiltmc.loader.impl.fabric.metadata.BuiltinModMetadata, and org.quiltmc.loader.impl.metadata.GeneralExt2FabricMetadata.
| Collection< Person > net.fabricmc.loader.api.metadata.ModMetadata.getContributors | ( | ) |
Returns the mod's contributors.
Implemented in org.quiltmc.loader.impl.fabric.metadata.BuiltinModMetadata, and org.quiltmc.loader.impl.metadata.GeneralExt2FabricMetadata.
| CustomValue net.fabricmc.loader.api.metadata.ModMetadata.getCustomValue | ( | String | key | ) |
Returns the mod's fabric.mod.json declared custom value under key.
| key | the key |
null if no such value is present Implemented in org.quiltmc.loader.impl.fabric.metadata.AbstractModMetadata, org.quiltmc.loader.impl.fabric.metadata.BuiltinModMetadata, and org.quiltmc.loader.impl.metadata.GeneralExt2FabricMetadata.
| Map< String, CustomValue > net.fabricmc.loader.api.metadata.ModMetadata.getCustomValues | ( | ) |
Gets all custom values defined by this mod.
Note this map is unmodifiable.
Implemented in org.quiltmc.loader.impl.fabric.metadata.BuiltinModMetadata, and org.quiltmc.loader.impl.metadata.GeneralExt2FabricMetadata.
| Collection< ModDependency > net.fabricmc.loader.api.metadata.ModMetadata.getDependencies | ( | ) |
Returns all of the mod's dependencies.
Implemented in org.quiltmc.loader.impl.fabric.metadata.BuiltinModMetadata, and org.quiltmc.loader.impl.metadata.GeneralExt2FabricMetadata.
|
inline |
Returns the mod's required dependencies, without which the Loader will terminate loading.
getDependencies() and filter for ModDependency.Kind#DEPENDS instead Implemented in org.quiltmc.loader.impl.metadata.GeneralExt2FabricMetadata.
| String net.fabricmc.loader.api.metadata.ModMetadata.getDescription | ( | ) |
Returns the mod's description.
Implemented in org.quiltmc.loader.impl.fabric.metadata.BuiltinModMetadata, and org.quiltmc.loader.impl.metadata.GeneralExt2FabricMetadata.
| ModEnvironment net.fabricmc.loader.api.metadata.ModMetadata.getEnvironment | ( | ) |
Returns the mod's environment.
Implemented in org.quiltmc.loader.impl.fabric.metadata.BuiltinModMetadata, and org.quiltmc.loader.impl.metadata.GeneralExt2FabricMetadata.
| Optional< String > net.fabricmc.loader.api.metadata.ModMetadata.getIconPath | ( | int | size | ) |
Gets the path to an icon.
The standard defines icons as square .PNG files, however their dimensions are not defined - in particular, they are not guaranteed to be a power of two.
The preferred size is used in the following manner:
| size | the preferred size |
Implemented in org.quiltmc.loader.impl.fabric.metadata.BuiltinModMetadata, and org.quiltmc.loader.impl.metadata.GeneralExt2FabricMetadata.
| String net.fabricmc.loader.api.metadata.ModMetadata.getId | ( | ) |
Returns the mod's ID.
A mod's id must have only lowercase letters, digits, -, or _.
Implemented in org.quiltmc.loader.impl.fabric.metadata.BuiltinModMetadata, and org.quiltmc.loader.impl.metadata.GeneralExt2FabricMetadata.
| Collection< String > net.fabricmc.loader.api.metadata.ModMetadata.getLicense | ( | ) |
Returns the mod's licenses.
Implemented in org.quiltmc.loader.impl.fabric.metadata.BuiltinModMetadata, and org.quiltmc.loader.impl.metadata.GeneralExt2FabricMetadata.
| String net.fabricmc.loader.api.metadata.ModMetadata.getName | ( | ) |
Returns the mod's display name.
Implemented in org.quiltmc.loader.impl.fabric.metadata.BuiltinModMetadata, and org.quiltmc.loader.impl.metadata.GeneralExt2FabricMetadata.
| Collection< String > net.fabricmc.loader.api.metadata.ModMetadata.getProvides | ( | ) |
Returns the mod's ID provides.
The aliases follow the same rules as ID
Implemented in org.quiltmc.loader.impl.fabric.metadata.BuiltinModMetadata, and org.quiltmc.loader.impl.metadata.GeneralExt2FabricMetadata.
|
inline |
Returns the mod's recommended dependencies, without which the Loader will emit a warning.
getDependencies() and filter for ModDependency.Kind#RECOMMENDS instead Implemented in org.quiltmc.loader.impl.metadata.GeneralExt2FabricMetadata.
|
inline |
Returns the mod's suggested dependencies.
getDependencies() and filter for ModDependency.Kind#SUGGESTS instead Implemented in org.quiltmc.loader.impl.metadata.GeneralExt2FabricMetadata.
| String net.fabricmc.loader.api.metadata.ModMetadata.getType | ( | ) |
Returns the type of the mod.
The types may be fabric or builtin by default.
Implemented in org.quiltmc.loader.impl.fabric.metadata.BuiltinModMetadata, and org.quiltmc.loader.impl.metadata.GeneralExt2FabricMetadata.
| Version net.fabricmc.loader.api.metadata.ModMetadata.getVersion | ( | ) |
Returns the mod's version.
Implemented in org.quiltmc.loader.impl.fabric.metadata.BuiltinModMetadata, and org.quiltmc.loader.impl.metadata.GeneralExt2FabricMetadata.