public class CoreModFile
extends java.lang.Object
implements net.minecraftforge.forgespi.coremod.ICoreModFile
| Modifier and Type | Field and Description |
|---|---|
private ModFile |
file |
private java.nio.file.Path |
internalPath |
private java.lang.String |
name |
| Constructor and Description |
|---|
CoreModFile(java.lang.String name,
java.nio.file.Path path,
ModFile file) |
| Modifier and Type | Method and Description |
|---|---|
java.io.Reader |
getAdditionalFile(java.lang.String fileName) |
java.lang.String |
getOwnerId() |
java.nio.file.Path |
getPath() |
java.io.Reader |
readCoreMod() |
private final java.nio.file.Path internalPath
private final ModFile file
private final java.lang.String name
CoreModFile(java.lang.String name,
java.nio.file.Path path,
ModFile file)
public java.io.Reader readCoreMod()
throws java.io.IOException
readCoreMod in interface net.minecraftforge.forgespi.coremod.ICoreModFilejava.io.IOExceptionpublic java.nio.file.Path getPath()
getPath in interface net.minecraftforge.forgespi.coremod.ICoreModFilepublic java.io.Reader getAdditionalFile(java.lang.String fileName)
throws java.io.IOException
getAdditionalFile in interface net.minecraftforge.forgespi.coremod.ICoreModFilejava.io.IOExceptionpublic java.lang.String getOwnerId()
getOwnerId in interface net.minecraftforge.forgespi.coremod.ICoreModFile