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> 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 static final org.slf4j.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 final net.minecraftforge.forgespi.locating.IModProvider
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.IModProvider provider, net.minecraftforge.forgespi.locating.ModFileFactory.ModFileInfoParser parser) ModFile
(cpw.mods.jarhandling.SecureJar jar, net.minecraftforge.forgespi.locating.IModProvider provider, 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.language.IModFileInfo
List
<net.minecraftforge.forgespi.language.IModInfo> net.minecraftforge.forgespi.locating.IModProvider
net.minecraftforge.forgespi.language.ModFileScanData
cpw.mods.jarhandling.SecureJar
cpw.mods.jarhandling.SecureJar.Status
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
-
LOGGER
private static final org.slf4j.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
-
provider
private final net.minecraftforge.forgespi.locating.IModProvider provider -
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.IModProvider provider, net.minecraftforge.forgespi.locating.ModFileFactory.ModFileInfoParser parser) -
ModFile
public ModFile(cpw.mods.jarhandling.SecureJar jar, net.minecraftforge.forgespi.locating.IModProvider provider, 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
-
getProvider
public net.minecraftforge.forgespi.locating.IModProvider getProvider()- Specified by:
getProvider
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
-
getSecurityStatus
public cpw.mods.jarhandling.SecureJar.Status getSecurityStatus() -
getJarVersion
public org.apache.maven.artifact.versioning.ArtifactVersion getJarVersion() -
parseType
-