Class 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)  
    • Field Detail

      • internalPath

        private final java.nio.file.Path internalPath
      • 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 interface net.minecraftforge.forgespi.coremod.ICoreModFile
        Throws:
        java.io.IOException
      • getPath

        public java.nio.file.Path getPath()
        Specified by:
        getPath in interface net.minecraftforge.forgespi.coremod.ICoreModFile
      • getAdditionalFile

        public java.io.Reader getAdditionalFile​(java.lang.String fileName)
                                         throws java.io.IOException
        Specified by:
        getAdditionalFile in interface net.minecraftforge.forgespi.coremod.ICoreModFile
        Throws:
        java.io.IOException
      • getOwnerId

        public java.lang.String getOwnerId()
        Specified by:
        getOwnerId in interface net.minecraftforge.forgespi.coremod.ICoreModFile
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object