Class ModFileInfo
- java.lang.Object
-
- net.minecraftforge.fml.loading.moddiscovery.ModFileInfo
-
- All Implemented Interfaces:
net.minecraftforge.forgespi.language.IConfigurable
,net.minecraftforge.forgespi.language.IModFileInfo
public class ModFileInfo extends java.lang.Object implements net.minecraftforge.forgespi.language.IModFileInfo, net.minecraftforge.forgespi.language.IConfigurable
-
-
Field Summary
Fields Modifier and Type Field Description private net.minecraftforge.forgespi.language.IConfigurable
config
private java.net.URL
issueURL
private java.lang.String
license
private static org.apache.logging.log4j.Logger
LOGGER
private java.util.Optional<java.util.jar.Manifest>
manifest
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
private java.util.Optional<java.security.CodeSigner[]>
signers
-
Constructor Summary
Constructors Constructor Description ModFileInfo(ModFile modFile, net.minecraftforge.forgespi.language.IConfigurable config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.security.CodeSigner[]>
getCodeSigners()
java.util.Optional<java.lang.String>
getCodeSigningFingerprint()
<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.net.URL
getIssueURL()
java.lang.String
getLicense()
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()
java.util.Optional<java.lang.String>
getTrustData()
boolean
missingLicense()
boolean
showAsResourcePack()
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
config
private final net.minecraftforge.forgespi.language.IConfigurable config
-
modFile
private final ModFile modFile
-
issueURL
private final java.net.URL issueURL
-
modLoader
private final java.lang.String modLoader
-
modLoaderVersion
private final org.apache.maven.artifact.versioning.VersionRange modLoaderVersion
-
showAsResourcePack
private final boolean showAsResourcePack
-
mods
private final java.util.List<net.minecraftforge.forgespi.language.IModInfo> mods
-
properties
private final java.util.Map<java.lang.String,java.lang.Object> properties
-
license
private final java.lang.String license
-
manifest
private final java.util.Optional<java.util.jar.Manifest> manifest
-
signers
private final java.util.Optional<java.security.CodeSigner[]> signers
-
-
Constructor Detail
-
ModFileInfo
ModFileInfo(ModFile modFile, net.minecraftforge.forgespi.language.IConfigurable config)
-
-
Method Detail
-
getMods
public java.util.List<net.minecraftforge.forgespi.language.IModInfo> getMods()
- Specified by:
getMods
in interfacenet.minecraftforge.forgespi.language.IModFileInfo
-
getFile
public ModFile getFile()
-
getModLoader
public java.lang.String getModLoader()
- Specified by:
getModLoader
in interfacenet.minecraftforge.forgespi.language.IModFileInfo
-
getModLoaderVersion
public org.apache.maven.artifact.versioning.VersionRange getModLoaderVersion()
- Specified by:
getModLoaderVersion
in interfacenet.minecraftforge.forgespi.language.IModFileInfo
-
getFileProperties
public java.util.Map<java.lang.String,java.lang.Object> getFileProperties()
- Specified by:
getFileProperties
in interfacenet.minecraftforge.forgespi.language.IModFileInfo
-
getManifest
public java.util.Optional<java.util.jar.Manifest> getManifest()
-
showAsResourcePack
public boolean showAsResourcePack()
- Specified by:
showAsResourcePack
in interfacenet.minecraftforge.forgespi.language.IModFileInfo
-
getConfigElement
public <T> java.util.Optional<T> getConfigElement(java.lang.String... key)
- Specified by:
getConfigElement
in interfacenet.minecraftforge.forgespi.language.IConfigurable
-
getConfigList
public java.util.List<? extends net.minecraftforge.forgespi.language.IConfigurable> getConfigList(java.lang.String... key)
- Specified by:
getConfigList
in interfacenet.minecraftforge.forgespi.language.IConfigurable
-
getLicense
public java.lang.String getLicense()
- Specified by:
getLicense
in interfacenet.minecraftforge.forgespi.language.IModFileInfo
-
getIssueURL
public java.net.URL getIssueURL()
-
missingLicense
public boolean missingLicense()
-
getCodeSigners
public java.util.Optional<java.security.CodeSigner[]> getCodeSigners()
-
getCodeSigningFingerprint
public java.util.Optional<java.lang.String> getCodeSigningFingerprint()
-
getTrustData
public java.util.Optional<java.lang.String> getTrustData()
-
-