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.apache.logging.log4j.Logger LOGGER
    • DEFAULT_VERSION

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

      private static final Pattern VALID_LABEL
    • 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
    • properties

      private final Map<String,​Object> properties
    • config

      private final net.minecraftforge.forgespi.language.IConfigurable config
  • 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
    • 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