Class FileIndexImpl

java.lang.Object
com.jozufozu.flywheel.core.source.FileIndexImpl
All Implemented Interfaces:
FileIndex

public class FileIndexImpl extends Object implements FileIndex
  • Field Details

  • Constructor Details

    • FileIndexImpl

      public FileIndexImpl()
  • Method Details

    • getFileID

      public int getFileID(SourceFile sourceFile)
      Returns an arbitrary file ID for use this compilation context, or generates one if missing.
      Specified by:
      getFileID in interface FileIndex
      Parameters:
      sourceFile - The file to retrieve the ID for.
      Returns:
      A file ID unique to the given sourceFile.
    • getFile

      public SourceFile getFile(int fileId)
      Specified by:
      getFile in interface FileIndex
    • printShaderInfoLog

      public void printShaderInfoLog(String source, String log, net.minecraft.resources.ResourceLocation name)