Class ModInfo
java.lang.Object
net.neoforged.fml.loading.moddiscovery.ModInfo
- All Implemented Interfaces:
IConfigurable
,IModInfo
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.neoforged.neoforgespi.language.IModInfo
IModInfo.DependencySide, IModInfo.DependencyType, IModInfo.Ordering
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IConfigurable
private static final org.apache.maven.artifact.versioning.DefaultArtifactVersion
private final List
<? extends IModInfo.ModVersion> private final String
private final String
private final List
<ForgeFeature.Bound> private static final org.slf4j.Logger
private final boolean
private final String
private final String
private final ModFileInfo
private static final Pattern
private static final Pattern
private static final Pattern
private final org.apache.maven.artifact.versioning.ArtifactVersion
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Optional
<T> getConfigElement
(String... key) List
<? extends IConfigurable> getConfigList
(String... key) List
<? extends IModInfo.ModVersion> List
<? extends ForgeFeature.Bound> Returns the language loader this mod uses.boolean
getModId()
Returns the mod id.org.apache.maven.artifact.versioning.ArtifactVersion
private ForgeFeature.Bound
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
DEFAULT_VERSION
private static final org.apache.maven.artifact.versioning.DefaultArtifactVersion DEFAULT_VERSION -
VALID_MODID
-
VALID_NAMESPACE
-
VALID_VERSION
-
owningFile
-
modId
-
namespace
-
version
private final org.apache.maven.artifact.versioning.ArtifactVersion version -
displayName
-
description
-
logoFile
-
logoBlur
private final boolean logoBlur -
updateJSONURL
-
dependencies
-
features
-
properties
-
config
-
modUrl
-
-
Constructor Details
-
ModInfo
-
-
Method Details
-
getLoader
Description copied from interface:IModInfo
Returns the language loader this mod uses. -
getOwningFile
- Specified by:
getOwningFile
in interfaceIModInfo
-
getModId
Description copied from interface:IModInfo
Returns the mod id. Mod IDs must satisfy the following requirements:- be from 2 to 64 characters long
- contain only lowercase letters, digits, underscores, and periods
- each dot-separated section must start with a lowercase letter
-
getDisplayName
- Specified by:
getDisplayName
in interfaceIModInfo
-
getDescription
- Specified by:
getDescription
in interfaceIModInfo
-
getVersion
public org.apache.maven.artifact.versioning.ArtifactVersion getVersion()- Specified by:
getVersion
in interfaceIModInfo
-
getDependencies
- Specified by:
getDependencies
in interfaceIModInfo
-
getNamespace
- Specified by:
getNamespace
in interfaceIModInfo
-
getModProperties
- Specified by:
getModProperties
in interfaceIModInfo
-
getUpdateURL
- Specified by:
getUpdateURL
in interfaceIModInfo
-
getLogoFile
- Specified by:
getLogoFile
in interfaceIModInfo
-
getLogoBlur
public boolean getLogoBlur()- Specified by:
getLogoBlur
in interfaceIModInfo
-
getConfig
-
getForgeFeatures
- Specified by:
getForgeFeatures
in interfaceIModInfo
-
getConfigElement
- Specified by:
getConfigElement
in interfaceIConfigurable
-
getConfigList
- Specified by:
getConfigList
in interfaceIConfigurable
-
getModURL
-
makeBound
-