Class ModFile
java.lang.Object
net.minecraftforge.fml.loading.moddiscovery.ModFile
- All Implemented Interfaces:
net.minecraftforge.forgespi.locating.IModFile
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraftforge.forgespi.locating.IModFile
net.minecraftforge.forgespi.locating.IModFile.Type
-
Field Summary
Modifier and TypeFieldDescriptionprivate Path
private List<CoreModFile>
static final Manifest
Deprecated, for removal: This API element is subject to removal in a future version.private net.minecraftforge.forgespi.language.ModFileScanData
private CompletableFuture<net.minecraftforge.forgespi.language.ModFileScanData>
private final cpw.mods.jarhandling.SecureJar
private final String
private List<net.minecraftforge.forgespi.language.IModLanguageProvider>
private final net.minecraftforge.forgespi.locating.IModLocator
private static final org.apache.logging.log4j.Logger
private final Manifest
private net.minecraftforge.forgespi.language.IModFileInfo
private final net.minecraftforge.forgespi.locating.IModFile.Type
private final net.minecraftforge.forgespi.locating.ModFileFactory.ModFileInfoParser
private Throwable
private cpw.mods.jarhandling.SecureJar.Status
(package private) static final Attributes.Name
-
Constructor Summary
ConstructorDescriptionModFile
(cpw.mods.jarhandling.SecureJar jar, net.minecraftforge.forgespi.locating.IModLocator locator, net.minecraftforge.forgespi.locating.ModFileFactory.ModFileInfoParser parser) ModFile
(cpw.mods.jarhandling.SecureJar jar, net.minecraftforge.forgespi.locating.IModLocator locator, net.minecraftforge.forgespi.locating.ModFileFactory.ModFileInfoParser parser, String type) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraftforge.forgespi.language.ModFileScanData
Run in an executor thread to harvest the class and annotation listfindResource
(String... path) org.apache.maven.artifact.versioning.ArtifactVersion
List<net.minecraftforge.forgespi.language.IModLanguageProvider>
net.minecraftforge.forgespi.locating.IModLocator
net.minecraftforge.forgespi.language.IModFileInfo
List<net.minecraftforge.forgespi.language.IModInfo>
net.minecraftforge.forgespi.language.ModFileScanData
cpw.mods.jarhandling.SecureJar
net.minecraftforge.forgespi.locating.IModFile.Type
getType()
void
boolean
private static String
parseType
(cpw.mods.jarhandling.SecureJar jar) void
void
setFileProperties
(Map<String, Object> fileProperties) void
setFutureScanResult
(CompletableFuture<net.minecraftforge.forgespi.language.ModFileScanData> future) void
setScanResult
(net.minecraftforge.forgespi.language.ModFileScanData modFileScanData, Throwable throwable) void
setSecurityStatus
(cpw.mods.jarhandling.SecureJar.Status status) toString()
-
Field Details
-
DEFAULTMANIFEST
Deprecated, for removal: This API element is subject to removal in a future version. -
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
jarVersion
-
parser
private final net.minecraftforge.forgespi.locating.ModFileFactory.ModFileInfoParser parser -
fileProperties
-
loaders
-
scanError
-
jar
private final cpw.mods.jarhandling.SecureJar jar -
modFileType
private final net.minecraftforge.forgespi.locating.IModFile.Type modFileType -
manifest
-
locator
private final net.minecraftforge.forgespi.locating.IModLocator locator -
modFileInfo
private net.minecraftforge.forgespi.language.IModFileInfo modFileInfo -
fileModFileScanData
private net.minecraftforge.forgespi.language.ModFileScanData fileModFileScanData -
futureScanResult
-
coreMods
-
accessTransformer
-
TYPE
-
securityStatus
private cpw.mods.jarhandling.SecureJar.Status securityStatus
-
-
Constructor Details
-
ModFile
public ModFile(cpw.mods.jarhandling.SecureJar jar, net.minecraftforge.forgespi.locating.IModLocator locator, net.minecraftforge.forgespi.locating.ModFileFactory.ModFileInfoParser parser) -
ModFile
public ModFile(cpw.mods.jarhandling.SecureJar jar, net.minecraftforge.forgespi.locating.IModLocator locator, net.minecraftforge.forgespi.locating.ModFileFactory.ModFileInfoParser parser, String type)
-
-
Method Details
-
getSubstitutionMap
- Specified by:
getSubstitutionMap
in interfacenet.minecraftforge.forgespi.locating.IModFile
-
getType
public net.minecraftforge.forgespi.locating.IModFile.Type getType()- Specified by:
getType
in interfacenet.minecraftforge.forgespi.locating.IModFile
-
getFilePath
- Specified by:
getFilePath
in interfacenet.minecraftforge.forgespi.locating.IModFile
-
getSecureJar
public cpw.mods.jarhandling.SecureJar getSecureJar()- Specified by:
getSecureJar
in interfacenet.minecraftforge.forgespi.locating.IModFile
-
getModInfos
- Specified by:
getModInfos
in interfacenet.minecraftforge.forgespi.locating.IModFile
-
getAccessTransformer
-
identifyMods
public boolean identifyMods() -
getCoreMods
-
compileContent
public net.minecraftforge.forgespi.language.ModFileScanData compileContent()Run in an executor thread to harvest the class and annotation list -
scanFile
-
setFutureScanResult
public void setFutureScanResult(CompletableFuture<net.minecraftforge.forgespi.language.ModFileScanData> future) -
getScanResult
public net.minecraftforge.forgespi.language.ModFileScanData getScanResult()- Specified by:
getScanResult
in interfacenet.minecraftforge.forgespi.locating.IModFile
-
setScanResult
public void setScanResult(net.minecraftforge.forgespi.language.ModFileScanData modFileScanData, Throwable throwable) -
setFileProperties
-
getLoaders
- Specified by:
getLoaders
in interfacenet.minecraftforge.forgespi.locating.IModFile
-
findResource
- Specified by:
findResource
in interfacenet.minecraftforge.forgespi.locating.IModFile
-
identifyLanguage
public void identifyLanguage() -
toString
-
getFileName
- Specified by:
getFileName
in interfacenet.minecraftforge.forgespi.locating.IModFile
-
getLocator
public net.minecraftforge.forgespi.locating.IModLocator getLocator()- Specified by:
getLocator
in interfacenet.minecraftforge.forgespi.locating.IModFile
-
getModFileInfo
public net.minecraftforge.forgespi.language.IModFileInfo getModFileInfo()- Specified by:
getModFileInfo
in interfacenet.minecraftforge.forgespi.locating.IModFile
-
setSecurityStatus
public void setSecurityStatus(cpw.mods.jarhandling.SecureJar.Status status) - Specified by:
setSecurityStatus
in interfacenet.minecraftforge.forgespi.locating.IModFile
-
getJarVersion
public org.apache.maven.artifact.versioning.ArtifactVersion getJarVersion() -
parseType
-