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.slf4j.Logger LOGGER
    • MAYBE_NOT_JAVAFML_VER

      private static final String MAYBE_NOT_JAVAFML_VER
      See Also:
    • JAVAFML

      private static final String JAVAFML
      See Also:
    • NOT_A_FORGE_MOD_PROP

      @Internal public static final String NOT_A_FORGE_MOD_PROP
      See Also:
    • 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
    • clientSideOnly

      private final boolean clientSideOnly
    • showAsDataPack

      private final boolean showAsDataPack
    • 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, Consumer<net.minecraftforge.forgespi.language.IModFileInfo> configFileConsumer)
    • ModFileInfo

      public ModFileInfo(ModFile file, net.minecraftforge.forgespi.language.IConfigurable config, Consumer<net.minecraftforge.forgespi.language.IModFileInfo> configFileConsumer, 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
    • isClientSideOnly

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

      public boolean showAsDataPack()
      Specified by:
      showAsDataPack 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