Class ModInfo
- 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 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
-
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
-
Constructor Summary
Constructors Constructor Description ModInfo(ModFileInfo owningFile, net.minecraftforge.forgespi.language.IConfigurable config)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description <T> java.util.Optional<T>
getConfigElement(java.lang.String... key)
java.util.List<? extends net.minecraftforge.forgespi.language.IConfigurable>
getConfigList(java.lang.String... key)
java.util.List<? extends net.minecraftforge.forgespi.language.IModInfo.ModVersion>
getDependencies()
java.lang.String
getDescription()
java.lang.String
getDisplayName()
boolean
getLogoBlur()
java.util.Optional<java.lang.String>
getLogoFile()
java.lang.String
getModId()
java.util.Map<java.lang.String,java.lang.Object>
getModProperties()
java.lang.String
getNamespace()
ModFileInfo
getOwningFile()
java.net.URL
getUpdateURL()
org.apache.maven.artifact.versioning.ArtifactVersion
getVersion()
boolean
hasConfigUI()
Deprecated.
-
-
-
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
-
owningFile
private final ModFileInfo owningFile
-
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 interfacenet.minecraftforge.forgespi.language.IModInfo
-
getModId
public java.lang.String getModId()
- Specified by:
getModId
in interfacenet.minecraftforge.forgespi.language.IModInfo
-
getDisplayName
public java.lang.String getDisplayName()
- Specified by:
getDisplayName
in interfacenet.minecraftforge.forgespi.language.IModInfo
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interfacenet.minecraftforge.forgespi.language.IModInfo
-
getVersion
public org.apache.maven.artifact.versioning.ArtifactVersion getVersion()
- Specified by:
getVersion
in interfacenet.minecraftforge.forgespi.language.IModInfo
-
getDependencies
public java.util.List<? extends net.minecraftforge.forgespi.language.IModInfo.ModVersion> getDependencies()
- Specified by:
getDependencies
in interfacenet.minecraftforge.forgespi.language.IModInfo
-
getNamespace
public java.lang.String getNamespace()
- Specified by:
getNamespace
in interfacenet.minecraftforge.forgespi.language.IModInfo
-
getModProperties
public java.util.Map<java.lang.String,java.lang.Object> getModProperties()
- Specified by:
getModProperties
in interfacenet.minecraftforge.forgespi.language.IModInfo
-
getUpdateURL
public java.net.URL getUpdateURL()
- Specified by:
getUpdateURL
in interfacenet.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 interfacenet.minecraftforge.forgespi.language.IConfigurable
-
getConfigList
public java.util.List<? extends net.minecraftforge.forgespi.language.IConfigurable> getConfigList(java.lang.String... key)
- Specified by:
getConfigList
in interfacenet.minecraftforge.forgespi.language.IConfigurable
-
-