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 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 cpw.mods.jarhandling.SecureJar
private String
private List<net.minecraftforge.forgespi.language.IModLanguageProvider>
private net.minecraftforge.forgespi.locating.IModLocator
private static org.apache.logging.log4j.Logger
private Manifest
private net.minecraftforge.forgespi.language.IModFileInfo
private net.minecraftforge.forgespi.locating.IModFile.Type
private net.minecraftforge.forgespi.locating.ModFileFactory.ModFileInfoParser
private Throwable
private cpw.mods.jarhandling.SecureJar.Status
static Attributes.Name
-
Constructor Summary
ConstructorDescriptionModFile(cpw.mods.jarhandling.SecureJar jar, net.minecraftforge.forgespi.locating.IModLocator locator, net.minecraftforge.forgespi.locating.ModFileFactory.ModFileInfoParser parser)
-
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraftforge.forgespi.locating.ModFileFactory
Deprecated, for removal: This API element is subject to removal in a future version.net.minecraftforge.forgespi.language.ModFileScanData
Run in an executor thread to harvest the class and annotation listfindResource(String... path)
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
static ModFile
newFMLInstance(net.minecraftforge.forgespi.locating.IModLocator locator, cpw.mods.jarhandling.SecureJar jar)
Deprecated, for removal: This API element is subject to removal in a future version.static ModFile
newFMLInstance(net.minecraftforge.forgespi.locating.IModLocator locator, Path... paths)
Deprecated, for removal: This API element is subject to removal in a future version.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)
-
-
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
-
buildFactory
@Deprecated(forRemoval=true, since="1.17.1") public static net.minecraftforge.forgespi.locating.ModFileFactory buildFactory()Deprecated, for removal: This API element is subject to removal in a future version. -
newFMLInstance
@Deprecated(forRemoval=true, since="1.17.1") public static ModFile newFMLInstance(net.minecraftforge.forgespi.locating.IModLocator locator, cpw.mods.jarhandling.SecureJar jar)Deprecated, for removal: This API element is subject to removal in a future version. -
newFMLInstance
@Deprecated(forRemoval=true, since="1.17.1") public static ModFile newFMLInstance(net.minecraftforge.forgespi.locating.IModLocator locator, Path... paths)Deprecated, for removal: This API element is subject to removal in a future version. -
setSecurityStatus
public void setSecurityStatus(cpw.mods.jarhandling.SecureJar.Status status)- Specified by:
setSecurityStatus
in interfacenet.minecraftforge.forgespi.locating.IModFile
-