Package dev.architectury.loom.metadata
Class ModsToml
java.lang.Object
dev.architectury.loom.metadata.ModsToml
- All Implemented Interfaces:
ModMetadataFile
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAccessTransformers(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.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.inthashCode()static ModsTomlof(byte[] utf8) static ModsTomlstatic ModsTomlstatic ModsTomlMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.architectury.loom.metadata.ModMetadataFile
getId
-
Field Details
-
FILE_PATH
- See Also:
-
NEOFORGE_FILE_PATH
- See Also:
-
-
Method Details
-
of
-
of
-
of
- Throws:
IOException
-
of
- Throws:
IOException
-
getIds
Description copied from interface:ModMetadataFileReturns all mod IDs in this mod metadata file..- Specified by:
getIdsin interfaceModMetadataFile- Returns:
- all mod IDs in this mod metadata file
-
getAccessWideners
Description copied from interface:ModMetadataFileReturns the paths to the access widener file of this mod, or an empty set if absent..- Specified by:
getAccessWidenersin interfaceModMetadataFile- Returns:
- the paths to the access widener file of this mod, or an empty set if absent
-
getAccessTransformers
Description copied from interface:ModMetadataFileReturns the paths to the access transformer files of this mod, or an empty set if absent..- Specified by:
getAccessTransformersin interfaceModMetadataFile- 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
public List<InterfaceInjectionProcessor.InjectedInterface> getInjectedInterfaces(@Nullable String modId) Description copied from interface:ModMetadataFileReturns the injected interface data in this mod metadata file..- Specified by:
getInjectedInterfacesin interfaceModMetadataFile- Parameters:
modId- the mod ID to use as a fallback ifModMetadataFile.getId()returnsnull- Returns:
- the injected interface data in this mod metadata file
-
getFileName
Description copied from interface:ModMetadataFileReturns the file name of this mod metadata file..- Specified by:
getFileNamein interfaceModMetadataFile- Returns:
- the file name of this mod metadata file
-
getMixinConfigs
Description copied from interface:ModMetadataFileReturns a list of the mixin configs declared in this mod metadata file..- Specified by:
getMixinConfigsin interfaceModMetadataFile- Returns:
- a list of the mixin configs declared in this mod metadata file
-
equals
-
hashCode
public int hashCode()
-