Class CoreModFile
- java.lang.Object
-
- net.minecraftforge.fml.loading.moddiscovery.CoreModFile
-
- All Implemented Interfaces:
net.minecraftforge.forgespi.coremod.ICoreModFile
public class CoreModFile extends java.lang.Object implements net.minecraftforge.forgespi.coremod.ICoreModFile
-
-
Field Summary
Fields Modifier and Type Field Description private ModFile
file
private java.nio.file.Path
internalPath
private java.lang.String
name
-
Constructor Summary
Constructors Constructor Description CoreModFile(java.lang.String name, java.nio.file.Path path, ModFile file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.Reader
getAdditionalFile(java.lang.String fileName)
java.lang.String
getOwnerId()
java.nio.file.Path
getPath()
java.io.Reader
readCoreMod()
java.lang.String
toString()
-
-
-
Field Detail
-
internalPath
private final java.nio.file.Path internalPath
-
file
private final ModFile file
-
name
private final java.lang.String name
-
-
Constructor Detail
-
CoreModFile
CoreModFile(java.lang.String name, java.nio.file.Path path, ModFile file)
-
-
Method Detail
-
readCoreMod
public java.io.Reader readCoreMod() throws java.io.IOException
- Specified by:
readCoreMod
in interfacenet.minecraftforge.forgespi.coremod.ICoreModFile
- Throws:
java.io.IOException
-
getPath
public java.nio.file.Path getPath()
- Specified by:
getPath
in interfacenet.minecraftforge.forgespi.coremod.ICoreModFile
-
getAdditionalFile
public java.io.Reader getAdditionalFile(java.lang.String fileName) throws java.io.IOException
- Specified by:
getAdditionalFile
in interfacenet.minecraftforge.forgespi.coremod.ICoreModFile
- Throws:
java.io.IOException
-
getOwnerId
public java.lang.String getOwnerId()
- Specified by:
getOwnerId
in interfacenet.minecraftforge.forgespi.coremod.ICoreModFile
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-