public class ModFileInfo
extends java.lang.Object
implements net.minecraftforge.forgespi.language.IModFileInfo, net.minecraftforge.forgespi.language.IConfigurable
Modifier and Type | Field and Description |
---|---|
private net.minecraftforge.forgespi.language.IConfigurable |
config |
private java.net.URL |
issueURL |
private static org.apache.logging.log4j.Logger |
LOGGER |
private ModFile |
modFile |
private java.lang.String |
modLoader |
private org.apache.maven.artifact.versioning.VersionRange |
modLoaderVersion |
private java.util.List<net.minecraftforge.forgespi.language.IModInfo> |
mods |
private java.util.Map<java.lang.String,java.lang.Object> |
properties |
private boolean |
showAsResourcePack |
Constructor and Description |
---|
ModFileInfo(ModFile modFile,
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) |
ModFile |
getFile() |
java.util.Map<java.lang.String,java.lang.Object> |
getFileProperties() |
java.util.Optional<java.util.jar.Manifest> |
getManifest() |
java.lang.String |
getModLoader() |
org.apache.maven.artifact.versioning.VersionRange |
getModLoaderVersion() |
java.util.List<net.minecraftforge.forgespi.language.IModInfo> |
getMods() |
boolean |
showAsResourcePack() |
private static final org.apache.logging.log4j.Logger LOGGER
private final net.minecraftforge.forgespi.language.IConfigurable config
private final ModFile modFile
private final java.net.URL issueURL
private final java.lang.String modLoader
private final org.apache.maven.artifact.versioning.VersionRange modLoaderVersion
private final boolean showAsResourcePack
private final java.util.List<net.minecraftforge.forgespi.language.IModInfo> mods
private final java.util.Map<java.lang.String,java.lang.Object> properties
ModFileInfo(ModFile modFile, net.minecraftforge.forgespi.language.IConfigurable config)
public java.util.List<net.minecraftforge.forgespi.language.IModInfo> getMods()
getMods
in interface net.minecraftforge.forgespi.language.IModFileInfo
public ModFile getFile()
public java.lang.String getModLoader()
getModLoader
in interface net.minecraftforge.forgespi.language.IModFileInfo
public org.apache.maven.artifact.versioning.VersionRange getModLoaderVersion()
getModLoaderVersion
in interface net.minecraftforge.forgespi.language.IModFileInfo
public java.util.Map<java.lang.String,java.lang.Object> getFileProperties()
getFileProperties
in interface net.minecraftforge.forgespi.language.IModFileInfo
public java.util.Optional<java.util.jar.Manifest> getManifest()
public boolean showAsResourcePack()
showAsResourcePack
in interface net.minecraftforge.forgespi.language.IModFileInfo
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