Class ModFileResourcePack

All Implemented Interfaces:
AutoCloseable, PackResources, IForgePackResources

@Deprecated(since="1.18", forRemoval=true) public class ModFileResourcePack extends PathResourcePack
Deprecated, for removal: This API element is subject to removal in a future version.
  • Field Details

    • modFile

      private final net.minecraftforge.forgespi.locating.IModFile modFile
      Deprecated, for removal: This API element is subject to removal in a future version.
    • packInfo

      private Pack packInfo
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • ModFileResourcePack

      public ModFileResourcePack(net.minecraftforge.forgespi.locating.IModFile modFile)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getModFile

      public net.minecraftforge.forgespi.locating.IModFile getModFile()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • resolve

      @Nonnull protected Path resolve(@Nonnull String... paths)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from class: PathResourcePack
      Implement to return a file or folder path for the given set of path components.
      Overrides:
      resolve in class PathResourcePack
      Parameters:
      paths - One or more path strings to resolve. Can include slash-separated paths.
      Returns:
      the resulting path, which may not exist.
    • toString

      public String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      toString in class PathResourcePack