Class ModFileInfo

java.lang.Object
net.minecraftforge.fml.loading.moddiscovery.ModFileInfo
All Implemented Interfaces:
net.minecraftforge.forgespi.language.IConfigurable, net.minecraftforge.forgespi.language.IModFileInfo

public class ModFileInfo extends Object implements net.minecraftforge.forgespi.language.IModFileInfo, net.minecraftforge.forgespi.language.IConfigurable
  • Field Details

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • config

      private final net.minecraftforge.forgespi.language.IConfigurable config
    • modFile

      private final ModFile modFile
    • issueURL

      private final URL issueURL
    • modLoader

      private final String modLoader
    • modLoaderVersion

      private final org.apache.maven.artifact.versioning.VersionRange modLoaderVersion
    • showAsResourcePack

      private final boolean showAsResourcePack
    • mods

      private final List<net.minecraftforge.forgespi.language.IModInfo> mods
    • properties

      private final Map<String,Object> properties
    • license

      private final String license
    • manifest

      private final Optional<Manifest> manifest
    • signers

      private final Optional<CodeSigner[]> signers
  • Constructor Details

    • ModFileInfo

      ModFileInfo(ModFile modFile, net.minecraftforge.forgespi.language.IConfigurable config)
  • Method Details

    • getMods

      public List<net.minecraftforge.forgespi.language.IModInfo> getMods()
      Specified by:
      getMods in interface net.minecraftforge.forgespi.language.IModFileInfo
    • getFile

      public ModFile getFile()
    • getModLoader

      public String getModLoader()
      Specified by:
      getModLoader in interface net.minecraftforge.forgespi.language.IModFileInfo
    • getModLoaderVersion

      public org.apache.maven.artifact.versioning.VersionRange getModLoaderVersion()
      Specified by:
      getModLoaderVersion in interface net.minecraftforge.forgespi.language.IModFileInfo
    • getFileProperties

      public Map<String,Object> getFileProperties()
      Specified by:
      getFileProperties in interface net.minecraftforge.forgespi.language.IModFileInfo
    • getManifest

      public Optional<Manifest> getManifest()
    • showAsResourcePack

      public boolean showAsResourcePack()
      Specified by:
      showAsResourcePack in interface net.minecraftforge.forgespi.language.IModFileInfo
    • getConfigElement

      public <T> Optional<T> getConfigElement(String... key)
      Specified by:
      getConfigElement in interface net.minecraftforge.forgespi.language.IConfigurable
    • getConfigList

      public List<? extends net.minecraftforge.forgespi.language.IConfigurable> getConfigList(String... key)
      Specified by:
      getConfigList in interface net.minecraftforge.forgespi.language.IConfigurable
    • getLicense

      public String getLicense()
      Specified by:
      getLicense in interface net.minecraftforge.forgespi.language.IModFileInfo
    • getIssueURL

      public URL getIssueURL()
    • missingLicense

      public boolean missingLicense()
    • getCodeSigners

      public Optional<CodeSigner[]> getCodeSigners()
    • getCodeSigningFingerprint

      public Optional<String> getCodeSigningFingerprint()
    • getTrustData

      public Optional<String> getTrustData()