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 IConfigurableprivate static final org.apache.maven.artifact.versioning.DefaultArtifactVersionprivate final List<? extends IModInfo.ModVersion> private final Stringprivate final Stringprivate final List<ForgeFeature.Bound> private static final org.slf4j.Loggerprivate final booleanprivate final Stringprivate final Stringprivate final ModFileInfoprivate static final Patternprivate static final Patternprivate static final Patternprivate 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.booleangetModId()Returns the mod id.org.apache.maven.artifact.versioning.ArtifactVersionprivate 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:IModInfoReturns the language loader this mod uses. -
getOwningFile
- Specified by:
getOwningFilein interfaceIModInfo
-
getModId
Description copied from interface:IModInfoReturns 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:
getDisplayNamein interfaceIModInfo
-
getDescription
- Specified by:
getDescriptionin interfaceIModInfo
-
getVersion
public org.apache.maven.artifact.versioning.ArtifactVersion getVersion()- Specified by:
getVersionin interfaceIModInfo
-
getDependencies
- Specified by:
getDependenciesin interfaceIModInfo
-
getNamespace
- Specified by:
getNamespacein interfaceIModInfo
-
getModProperties
- Specified by:
getModPropertiesin interfaceIModInfo
-
getUpdateURL
- Specified by:
getUpdateURLin interfaceIModInfo
-
getLogoFile
- Specified by:
getLogoFilein interfaceIModInfo
-
getLogoBlur
public boolean getLogoBlur()- Specified by:
getLogoBlurin interfaceIModInfo
-
getConfig
-
getForgeFeatures
- Specified by:
getForgeFeaturesin interfaceIModInfo
-
getConfigElement
- Specified by:
getConfigElementin interfaceIConfigurable
-
getConfigList
- Specified by:
getConfigListin interfaceIConfigurable
-
getModURL
-
makeBound
-