Class ModInfo

  • All Implemented Interfaces:
    net.minecraftforge.forgespi.language.IConfigurable, net.minecraftforge.forgespi.language.IModInfo

    public class ModInfo
    extends java.lang.Object
    implements net.minecraftforge.forgespi.language.IModInfo, net.minecraftforge.forgespi.language.IConfigurable
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      (package private) class  ModInfo.ModVersion  
      • Nested classes/interfaces inherited from interface net.minecraftforge.forgespi.language.IModInfo

        net.minecraftforge.forgespi.language.IModInfo.DependencySide, net.minecraftforge.forgespi.language.IModInfo.Ordering
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private net.minecraftforge.forgespi.language.IConfigurable config  
      private static org.apache.maven.artifact.versioning.DefaultArtifactVersion DEFAULT_VERSION  
      private java.util.List<? extends net.minecraftforge.forgespi.language.IModInfo.ModVersion> dependencies  
      private java.lang.String description  
      private java.lang.String displayName  
      private static org.apache.logging.log4j.Logger LOGGER  
      private boolean logoBlur  
      private java.util.Optional<java.lang.String> logoFile  
      private java.lang.String modId  
      private java.lang.String namespace  
      private ModFileInfo owningFile  
      private java.util.Map<java.lang.String,​java.lang.Object> properties  
      private java.net.URL updateJSONURL  
      private static java.util.regex.Pattern VALID_LABEL  
      private org.apache.maven.artifact.versioning.ArtifactVersion version  
      • Fields inherited from interface net.minecraftforge.forgespi.language.IModInfo

        UNBOUNDED
    • Constructor Summary

      Constructors 
      Constructor Description
      ModInfo​(ModFileInfo owningFile, net.minecraftforge.forgespi.language.IConfigurable config)  
    • Field Detail

      • 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 java.util.regex.Pattern VALID_LABEL
      • modId

        private final java.lang.String modId
      • namespace

        private final java.lang.String namespace
      • version

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

        private final java.lang.String displayName
      • description

        private final java.lang.String description
      • logoFile

        private final java.util.Optional<java.lang.String> logoFile
      • logoBlur

        private final boolean logoBlur
      • updateJSONURL

        private final java.net.URL updateJSONURL
      • dependencies

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

        private final java.util.Map<java.lang.String,​java.lang.Object> properties
      • config

        private final net.minecraftforge.forgespi.language.IConfigurable config
    • Constructor Detail

      • ModInfo

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

      • getOwningFile

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

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

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

        public java.lang.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 java.util.List<? extends net.minecraftforge.forgespi.language.IModInfo.ModVersion> getDependencies()
        Specified by:
        getDependencies in interface net.minecraftforge.forgespi.language.IModInfo
      • getNamespace

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

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

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

        public java.util.Optional<java.lang.String> getLogoFile()
      • getLogoBlur

        public boolean getLogoBlur()
      • hasConfigUI

        @Deprecated
        public boolean hasConfigUI()
        Deprecated.
        This is no longer used. The Mods List GUI currently directly checks whether there is an EntryPoint registered.
      • getConfigElement

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

        public java.util.List<? extends net.minecraftforge.forgespi.language.IConfigurable> getConfigList​(java.lang.String... key)
        Specified by:
        getConfigList in interface net.minecraftforge.forgespi.language.IConfigurable