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
    • languageSpecs

      private final List<net.minecraftforge.forgespi.language.IModFileInfo.LanguageSpec> languageSpecs
    • 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
    • usesServices

      private final List<String> usesServices
  • Constructor Details

    • ModFileInfo

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

      public ModFileInfo(ModFile file, net.minecraftforge.forgespi.language.IConfigurable config, List<net.minecraftforge.forgespi.language.IModFileInfo.LanguageSpec> languageSpecs)
  • 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()
      Specified by:
      getFile in interface net.minecraftforge.forgespi.language.IModFileInfo
    • requiredLanguageLoaders

      public List<net.minecraftforge.forgespi.language.IModFileInfo.LanguageSpec> requiredLanguageLoaders()
      Specified by:
      requiredLanguageLoaders in interface net.minecraftforge.forgespi.language.IModFileInfo
    • getFileProperties

      public Map<String,​Object> getFileProperties()
      Specified by:
      getFileProperties in interface net.minecraftforge.forgespi.language.IModFileInfo
    • 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
    • getConfig

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

      public URL getIssueURL()
    • missingLicense

      public boolean missingLicense()
    • getCodeSigningFingerprint

      public Optional<String> getCodeSigningFingerprint()
    • getTrustData

      public Optional<String> getTrustData()
    • moduleName

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

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

      public List<String> usesServices()
      Specified by:
      usesServices in interface net.minecraftforge.forgespi.language.IModFileInfo