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 static final Manifest
private net.minecraftforge.forgespi.language.ModFileScanData
private final Path
private CompletableFuture<net.minecraftforge.forgespi.language.ModFileScanData>
private final String
private 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
static final Attributes.Name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraftforge.forgespi.locating.ModFileFactory
net.minecraftforge.forgespi.language.ModFileScanData
Run in an executor thread to harvest the class and annotation listfindResource
(String className) 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
net.minecraftforge.forgespi.locating.IModFile.Type
getType()
void
boolean
static ModFile
newFMLInstance
(Path path, net.minecraftforge.forgespi.locating.IModLocator locator) 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) toString()
-
Field Details
-
DEFAULTMANIFEST
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
jarVersion
-
parser
private final net.minecraftforge.forgespi.locating.ModFileFactory.ModFileInfoParser parser -
fileProperties
-
loader
private net.minecraftforge.forgespi.language.IModLanguageProvider loader -
scanError
-
filePath
-
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
-
-
Constructor Details
-
ModFile
public ModFile(Path file, 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
-
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
-
getLoader
public net.minecraftforge.forgespi.language.IModLanguageProvider getLoader()- Specified by:
getLoader
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
public static net.minecraftforge.forgespi.locating.ModFileFactory buildFactory() -
newFMLInstance
-