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

public class ModInfo extends Object implements net.minecraftforge.forgespi.language.IModInfo, net.minecraftforge.forgespi.language.IConfigurable
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • DEFAULT_VERSION

      private static final org.apache.maven.artifact.versioning.DefaultArtifactVersion DEFAULT_VERSION
    • VALID_MODID

      private static final Pattern VALID_MODID
    • VALID_NAMESPACE

      private static final Pattern VALID_NAMESPACE
    • VALID_VERSION

      private static final Pattern VALID_VERSION
    • owningFile

      private final ModFileInfo owningFile
    • modId

      private final String modId
    • namespace

      private final String namespace
    • version

      private final org.apache.maven.artifact.versioning.ArtifactVersion version
    • displayName

      private final String displayName
    • description

      private final String description
    • logoFile

      private final Optional<String> logoFile
    • logoBlur

      private final boolean logoBlur
    • updateJSONURL

      private final Optional<URL> updateJSONURL
    • dependencies

      private final List<? extends net.minecraftforge.forgespi.language.IModInfo.ModVersion> dependencies
    • features

      private final List<net.minecraftforge.forgespi.locating.ForgeFeature.Bound> features
    • properties

      private final Map<String,Object> properties
    • config

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

      private final Optional<URL> modUrl
  • Constructor Details

    • ModInfo

      public ModInfo(ModFileInfo owningFile, net.minecraftforge.forgespi.language.IConfigurable config)
  • Method Details

    • getOwningFile

      public ModFileInfo getOwningFile()
      Specified by:
      getOwningFile in interface net.minecraftforge.forgespi.language.IModInfo
    • getModId

      public String getModId()
      Specified by:
      getModId in interface net.minecraftforge.forgespi.language.IModInfo
    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in interface net.minecraftforge.forgespi.language.IModInfo
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface net.minecraftforge.forgespi.language.IModInfo
    • getVersion

      public org.apache.maven.artifact.versioning.ArtifactVersion getVersion()
      Specified by:
      getVersion in interface net.minecraftforge.forgespi.language.IModInfo
    • getDependencies

      public List<? extends net.minecraftforge.forgespi.language.IModInfo.ModVersion> getDependencies()
      Specified by:
      getDependencies in interface net.minecraftforge.forgespi.language.IModInfo
    • getNamespace

      public String getNamespace()
      Specified by:
      getNamespace in interface net.minecraftforge.forgespi.language.IModInfo
    • getModProperties

      public Map<String,Object> getModProperties()
      Specified by:
      getModProperties in interface net.minecraftforge.forgespi.language.IModInfo
    • getUpdateURL

      public Optional<URL> getUpdateURL()
      Specified by:
      getUpdateURL in interface net.minecraftforge.forgespi.language.IModInfo
    • getLogoFile

      public Optional<String> getLogoFile()
      Specified by:
      getLogoFile in interface net.minecraftforge.forgespi.language.IModInfo
    • getLogoBlur

      public boolean getLogoBlur()
      Specified by:
      getLogoBlur in interface net.minecraftforge.forgespi.language.IModInfo
    • getConfig

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

      public List<? extends net.minecraftforge.forgespi.locating.ForgeFeature.Bound> getForgeFeatures()
      Specified by:
      getForgeFeatures in interface net.minecraftforge.forgespi.language.IModInfo
    • 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
    • getModURL

      public Optional<URL> getModURL()
      Specified by:
      getModURL in interface net.minecraftforge.forgespi.language.IModInfo