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 Object
implements net.minecraftforge.forgespi.language.IModInfo, net.minecraftforge.forgespi.language.IConfigurable
-
Nested Class Summary
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
Modifier and TypeFieldDescriptionprivate final net.minecraftforge.forgespi.language.IConfigurable
private static final org.apache.maven.artifact.versioning.DefaultArtifactVersion
private final List<? extends net.minecraftforge.forgespi.language.IModInfo.ModVersion>
private final String
private final String
private static final org.apache.logging.log4j.Logger
private final boolean
private final String
private final String
private final ModFileInfo
private final URL
private static final Pattern
private final org.apache.maven.artifact.versioning.ArtifactVersion
Fields inherited from interface net.minecraftforge.forgespi.language.IModInfo
UNBOUNDED
-
Constructor Summary
ConstructorDescriptionModInfo
(ModFileInfo owningFile, net.minecraftforge.forgespi.language.IConfigurable config) -
Method Summary
Modifier and TypeMethodDescription<T> Optional<T>
getConfigElement
(String... key) List<? extends net.minecraftforge.forgespi.language.IConfigurable>
getConfigList
(String... key) List<? extends net.minecraftforge.forgespi.language.IModInfo.ModVersion>
boolean
getModId()
org.apache.maven.artifact.versioning.ArtifactVersion
boolean
Deprecated.
-
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
-
owningFile
-
modId
-
namespace
-
version
private final org.apache.maven.artifact.versioning.ArtifactVersion version -
displayName
-
description
-
logoFile
-
logoBlur
private final boolean logoBlur -
updateJSONURL
-
dependencies
-
properties
-
config
private final net.minecraftforge.forgespi.language.IConfigurable config
-
-
Constructor Details
-
ModInfo
-
-
Method Details
-
getOwningFile
- Specified by:
getOwningFile
in interfacenet.minecraftforge.forgespi.language.IModInfo
-
getModId
- Specified by:
getModId
in interfacenet.minecraftforge.forgespi.language.IModInfo
-
getDisplayName
- Specified by:
getDisplayName
in interfacenet.minecraftforge.forgespi.language.IModInfo
-
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
- Specified by:
getDependencies
in interfacenet.minecraftforge.forgespi.language.IModInfo
-
getNamespace
- Specified by:
getNamespace
in interfacenet.minecraftforge.forgespi.language.IModInfo
-
getModProperties
- Specified by:
getModProperties
in interfacenet.minecraftforge.forgespi.language.IModInfo
-
getUpdateURL
- Specified by:
getUpdateURL
in interfacenet.minecraftforge.forgespi.language.IModInfo
-
getLogoFile
-
getLogoBlur
public boolean getLogoBlur() -
hasConfigUI
Deprecated.This is no longer used. The Mods List GUI currently directly checks whether there is an EntryPoint registered. -
getConfigElement
- Specified by:
getConfigElement
in interfacenet.minecraftforge.forgespi.language.IConfigurable
-
getConfigList
public List<? extends net.minecraftforge.forgespi.language.IConfigurable> getConfigList(String... key) - Specified by:
getConfigList
in interfacenet.minecraftforge.forgespi.language.IConfigurable
-