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 Details

    • getIds

      public Set<String> getIds()
      Description copied from interface: ModMetadataFile
      Returns all mod IDs in this mod metadata file..
      Specified by:
      getIds in interface ModMetadataFile
      Returns:
      all mod IDs in this mod metadata file
    • getAccessWideners

      public Set<String> getAccessWideners()
      Description copied from interface: ModMetadataFile
      Returns the paths to the access widener file of this mod, or an empty set if absent..
      Specified by:
      getAccessWideners in interface ModMetadataFile
      Returns:
      the paths to the access widener file of this mod, or an empty set if absent
    • getAccessTransformers

      public Set<String> getAccessTransformers(ModPlatform platform)
      Description copied from interface: ModMetadataFile
      Returns the paths to the access transformer files of this mod, or an empty set if absent..
      Specified by:
      getAccessTransformers in interface ModMetadataFile
      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: ModMetadataFile
      Returns the injected interface data in this mod metadata file..
      Specified by:
      getInjectedInterfaces in interface ModMetadataFile
      Parameters:
      modId - the mod ID to use as a fallback if ModMetadataFile.getId() returns null
      Returns:
      the injected interface data in this mod metadata file
    • getFileName

      public String getFileName()
      Description copied from interface: ModMetadataFile
      Returns the file name of this mod metadata file..
      Specified by:
      getFileName in interface ModMetadataFile
      Returns:
      the file name of this mod metadata file
    • getMixinConfigs

      public List<String> getMixinConfigs()
      Description copied from interface: ModMetadataFile
      Returns a list of the mixin configs declared in this mod metadata file..
      Specified by:
      getMixinConfigs in interface ModMetadataFile
      Returns:
      a list of the mixin configs declared in this mod metadata file