Package dev.architectury.loom.metadata
Class ErroringModMetadataFile
java.lang.Object
dev.architectury.loom.metadata.ErroringModMetadataFile
- All Implemented Interfaces:
ModMetadataFile
@VisibleForTesting
public final class ErroringModMetadataFile
extends Object
implements ModMetadataFile
A fallback mod metadata file that represents a non-fatal format error
in another file type. An example of such file type is mods.toml,
which doesn't necessarily need to be parsed – it primarily needs to just exist.
-
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.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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.architectury.loom.metadata.ModMetadataFile
getId
-
Method Details
-
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
-