Package dev.architectury.loom.metadata
Interface ModMetadataFile
- All Known Subinterfaces:
JsonBackedModMetadataFile
- All Known Implementing Classes:
ArchitecturyCommonJson,ErroringModMetadataFile,McmodInfo,ModsToml,QuiltModJson
public interface ModMetadataFile
The metadata file of a mod, such as
architectury.common.json or
quilt.mod.json.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetAccessTransformers(ModPlatform platform) Returns the paths to the access transformer files of this mod, or an empty set if absent.Returns the paths to the access widener file of this mod, or an empty set if absent.Returns the file name of this mod metadata file.default @Nullable StringgetId()Returns the mod ID in this mod metadata file, ornullif absent.getIds()Returns all mod IDs in this mod metadata file.getInjectedInterfaces(@Nullable String modId) Returns the injected interface data in this mod metadata file.Returns a list of the mixin configs declared in this mod metadata file.
-
Method Details
-
getIds
Returns all mod IDs in this mod metadata file..- Returns:
- all mod IDs in this mod metadata file
-
getId
Returns the mod ID in this mod metadata file, ornullif absent..- Returns:
- the mod ID in this mod metadata file, or
nullif absent
-
getAccessWideners
Returns the paths to the access widener file of this mod, or an empty set if absent..- Returns:
- the paths to the access widener file of this mod, or an empty set if absent
-
getAccessTransformers
Returns the paths to the access transformer files of this mod, or an empty set if absent..- Parameters:
platform- the platform to run the query on- Returns:
- the paths to the access transformer files of this mod, or an empty set if absent
-
getInjectedInterfaces
Returns the injected interface data in this mod metadata file..- Parameters:
modId- the mod ID to use as a fallback ifgetId()returnsnull- Returns:
- the injected interface data in this mod metadata file
- Throws:
IllegalArgumentException- if bothmodIdandgetId()arenull
-
getFileName
String getFileName()Returns the file name of this mod metadata file..- Returns:
- the file name of this mod metadata file
-
getMixinConfigs
Returns a list of the mixin configs declared in this mod metadata file..- Returns:
- a list of the mixin configs declared in this mod metadata file
-