public class ModFile
extends java.lang.Object
implements net.minecraftforge.forgespi.locating.IModFile
Modifier and Type | Field and Description |
---|---|
private java.nio.file.Path |
accessTransformer |
private java.util.List<CoreModFile> |
coreMods |
private static java.util.jar.Manifest |
DEFAULTMANIFEST |
private net.minecraftforge.forgespi.language.ModFileScanData |
fileModFileScanData |
private java.nio.file.Path |
filePath |
private java.util.Map<java.lang.String,java.lang.Object> |
fileProperties |
private java.util.concurrent.CompletableFuture<net.minecraftforge.forgespi.language.ModFileScanData> |
futureScanResult |
private java.lang.String |
jarVersion |
private net.minecraftforge.forgespi.language.IModLanguageProvider |
loader |
private net.minecraftforge.forgespi.locating.IModLocator |
locator |
private static org.apache.logging.log4j.Logger |
LOGGER |
private java.util.jar.Manifest |
manifest |
private net.minecraftforge.forgespi.language.IModFileInfo |
modFileInfo |
private net.minecraftforge.forgespi.locating.IModFile.Type |
modFileType |
private net.minecraftforge.forgespi.locating.ModFileFactory.ModFileInfoParser |
parser |
private java.lang.Throwable |
scanError |
static java.util.jar.Attributes.Name |
TYPE |
Constructor and Description |
---|
ModFile(java.nio.file.Path file,
net.minecraftforge.forgespi.locating.IModLocator locator,
net.minecraftforge.forgespi.locating.ModFileFactory.ModFileInfoParser parser) |
Modifier and Type | Method and Description |
---|---|
static net.minecraftforge.forgespi.locating.ModFileFactory |
buildFactory() |
net.minecraftforge.forgespi.language.ModFileScanData |
compileContent()
Run in an executor thread to harvest the class and annotation list
|
java.nio.file.Path |
findResource(java.lang.String className) |
java.util.Optional<java.nio.file.Path> |
getAccessTransformer() |
java.util.List<CoreModFile> |
getCoreMods() |
java.lang.String |
getFileName() |
java.nio.file.Path |
getFilePath() |
net.minecraftforge.forgespi.language.IModLanguageProvider |
getLoader() |
net.minecraftforge.forgespi.locating.IModLocator |
getLocator() |
net.minecraftforge.forgespi.language.IModFileInfo |
getModFileInfo() |
java.util.List<net.minecraftforge.forgespi.language.IModInfo> |
getModInfos() |
net.minecraftforge.forgespi.language.ModFileScanData |
getScanResult() |
java.util.function.Supplier<java.util.Map<java.lang.String,java.lang.Object>> |
getSubstitutionMap() |
net.minecraftforge.forgespi.locating.IModFile.Type |
getType() |
void |
identifyLanguage() |
boolean |
identifyMods() |
static ModFile |
newFMLInstance(java.nio.file.Path path,
net.minecraftforge.forgespi.locating.IModLocator locator) |
void |
scanFile(java.util.function.Consumer<java.nio.file.Path> pathConsumer) |
void |
setFileProperties(java.util.Map<java.lang.String,java.lang.Object> fileProperties) |
void |
setFutureScanResult(java.util.concurrent.CompletableFuture<net.minecraftforge.forgespi.language.ModFileScanData> future) |
void |
setScanResult(net.minecraftforge.forgespi.language.ModFileScanData modFileScanData,
java.lang.Throwable throwable) |
java.lang.String |
toString() |
private static final java.util.jar.Manifest DEFAULTMANIFEST
private static final org.apache.logging.log4j.Logger LOGGER
private final java.lang.String jarVersion
private final net.minecraftforge.forgespi.locating.ModFileFactory.ModFileInfoParser parser
private java.util.Map<java.lang.String,java.lang.Object> fileProperties
private net.minecraftforge.forgespi.language.IModLanguageProvider loader
private java.lang.Throwable scanError
private final java.nio.file.Path filePath
private final net.minecraftforge.forgespi.locating.IModFile.Type modFileType
private final java.util.jar.Manifest manifest
private final net.minecraftforge.forgespi.locating.IModLocator locator
private net.minecraftforge.forgespi.language.IModFileInfo modFileInfo
private net.minecraftforge.forgespi.language.ModFileScanData fileModFileScanData
private java.util.concurrent.CompletableFuture<net.minecraftforge.forgespi.language.ModFileScanData> futureScanResult
private java.util.List<CoreModFile> coreMods
private java.nio.file.Path accessTransformer
public static final java.util.jar.Attributes.Name TYPE
public ModFile(java.nio.file.Path file, net.minecraftforge.forgespi.locating.IModLocator locator, net.minecraftforge.forgespi.locating.ModFileFactory.ModFileInfoParser parser)
public java.util.function.Supplier<java.util.Map<java.lang.String,java.lang.Object>> getSubstitutionMap()
getSubstitutionMap
in interface net.minecraftforge.forgespi.locating.IModFile
public net.minecraftforge.forgespi.locating.IModFile.Type getType()
getType
in interface net.minecraftforge.forgespi.locating.IModFile
public java.nio.file.Path getFilePath()
getFilePath
in interface net.minecraftforge.forgespi.locating.IModFile
public java.util.List<net.minecraftforge.forgespi.language.IModInfo> getModInfos()
getModInfos
in interface net.minecraftforge.forgespi.locating.IModFile
public java.util.Optional<java.nio.file.Path> getAccessTransformer()
public boolean identifyMods()
public java.util.List<CoreModFile> getCoreMods()
public net.minecraftforge.forgespi.language.ModFileScanData compileContent()
public void scanFile(java.util.function.Consumer<java.nio.file.Path> pathConsumer)
public void setFutureScanResult(java.util.concurrent.CompletableFuture<net.minecraftforge.forgespi.language.ModFileScanData> future)
public net.minecraftforge.forgespi.language.ModFileScanData getScanResult()
getScanResult
in interface net.minecraftforge.forgespi.locating.IModFile
public void setScanResult(net.minecraftforge.forgespi.language.ModFileScanData modFileScanData, java.lang.Throwable throwable)
public void setFileProperties(java.util.Map<java.lang.String,java.lang.Object> fileProperties)
public net.minecraftforge.forgespi.language.IModLanguageProvider getLoader()
getLoader
in interface net.minecraftforge.forgespi.locating.IModFile
public java.nio.file.Path findResource(java.lang.String className)
findResource
in interface net.minecraftforge.forgespi.locating.IModFile
public void identifyLanguage()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getFileName()
getFileName
in interface net.minecraftforge.forgespi.locating.IModFile
public net.minecraftforge.forgespi.locating.IModLocator getLocator()
getLocator
in interface net.minecraftforge.forgespi.locating.IModFile
public net.minecraftforge.forgespi.language.IModFileInfo getModFileInfo()
getModFileInfo
in interface net.minecraftforge.forgespi.locating.IModFile
public static net.minecraftforge.forgespi.locating.ModFileFactory buildFactory()
public static ModFile newFMLInstance(java.nio.file.Path path, net.minecraftforge.forgespi.locating.IModLocator locator)