public class ModInfo
extends java.lang.Object
implements net.minecraftforge.forgespi.language.IModInfo, net.minecraftforge.forgespi.language.IConfigurable
Modifier and Type | Class and Description |
---|---|
(package private) class |
ModInfo.ModVersion |
Modifier and Type | Field and 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 and Description |
---|
ModInfo(ModFileInfo owningFile,
net.minecraftforge.forgespi.language.IConfigurable config) |
Modifier and Type | Method and 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.
|
private static final org.apache.logging.log4j.Logger LOGGER
private static final org.apache.maven.artifact.versioning.DefaultArtifactVersion DEFAULT_VERSION
private static final java.util.regex.Pattern VALID_LABEL
private final ModFileInfo owningFile
private final java.lang.String modId
private final java.lang.String namespace
private final org.apache.maven.artifact.versioning.ArtifactVersion version
private final java.lang.String displayName
private final java.lang.String description
private final java.util.Optional<java.lang.String> logoFile
private final boolean logoBlur
private final java.net.URL updateJSONURL
private final java.util.List<? extends net.minecraftforge.forgespi.language.IModInfo.ModVersion> dependencies
private final java.util.Map<java.lang.String,java.lang.Object> properties
private final net.minecraftforge.forgespi.language.IConfigurable config
public ModInfo(ModFileInfo owningFile, net.minecraftforge.forgespi.language.IConfigurable config)
public ModFileInfo getOwningFile()
getOwningFile
in interface net.minecraftforge.forgespi.language.IModInfo
public java.lang.String getModId()
getModId
in interface net.minecraftforge.forgespi.language.IModInfo
public java.lang.String getDisplayName()
getDisplayName
in interface net.minecraftforge.forgespi.language.IModInfo
public java.lang.String getDescription()
getDescription
in interface net.minecraftforge.forgespi.language.IModInfo
public org.apache.maven.artifact.versioning.ArtifactVersion getVersion()
getVersion
in interface net.minecraftforge.forgespi.language.IModInfo
public java.util.List<? extends net.minecraftforge.forgespi.language.IModInfo.ModVersion> getDependencies()
getDependencies
in interface net.minecraftforge.forgespi.language.IModInfo
public java.lang.String getNamespace()
getNamespace
in interface net.minecraftforge.forgespi.language.IModInfo
public java.util.Map<java.lang.String,java.lang.Object> getModProperties()
getModProperties
in interface net.minecraftforge.forgespi.language.IModInfo
public java.net.URL getUpdateURL()
getUpdateURL
in interface net.minecraftforge.forgespi.language.IModInfo
public java.util.Optional<java.lang.String> getLogoFile()
public boolean getLogoBlur()
@Deprecated public boolean hasConfigUI()
public <T> java.util.Optional<T> getConfigElement(java.lang.String... key)
getConfigElement
in interface net.minecraftforge.forgespi.language.IConfigurable
public java.util.List<? extends net.minecraftforge.forgespi.language.IConfigurable> getConfigList(java.lang.String... key)
getConfigList
in interface net.minecraftforge.forgespi.language.IConfigurable