Class ModJarMetadata

java.lang.Object
net.minecraftforge.fml.loading.moddiscovery.ModJarMetadata
All Implemented Interfaces:
cpw.mods.jarhandling.JarMetadata

public final class ModJarMetadata extends Object implements cpw.mods.jarhandling.JarMetadata
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    private net.minecraftforge.forgespi.locating.IModFile
     

    Fields inherited from interface cpw.mods.jarhandling.JarMetadata

    DASH_VERSION, ILLEGAL_KEYWORDS, KEYWORD_PARTS, LEADING_DOTS, MODULE_VERSION, NON_ALPHANUM, NUMBERLIKE_PARTS, REPEATING_DOTS, TRAILING_DOTS
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) static Optional<net.minecraftforge.forgespi.locating.IModFile>
    buildFile(Function<cpw.mods.jarhandling.SecureJar,net.minecraftforge.forgespi.locating.IModFile> mfConstructor, Predicate<cpw.mods.jarhandling.SecureJar> jarTest, BiPredicate<String,String> filter, Path... files)
    Deprecated, for removal: This API element is subject to removal in a future version.
    (package private) static net.minecraftforge.forgespi.locating.IModFile
    buildFile(net.minecraftforge.forgespi.locating.IModLocator locator, Path... files)
    Deprecated, for removal: This API element is subject to removal in a future version.
    (package private) static Optional<net.minecraftforge.forgespi.locating.IModFile>
    buildFile(net.minecraftforge.forgespi.locating.IModLocator locator, Predicate<cpw.mods.jarhandling.SecureJar> jarTest, BiPredicate<String,String> filter, Path... files)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
     
    int
     
    net.minecraftforge.forgespi.locating.IModFile
     
     
    void
    setModFile(net.minecraftforge.forgespi.locating.IModFile file)
     
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • modFile

      private net.minecraftforge.forgespi.locating.IModFile modFile
    • descriptor

      private ModuleDescriptor descriptor
  • Constructor Details

    • ModJarMetadata

      ModJarMetadata()
  • Method Details

    • buildFile

      @Deprecated(forRemoval=true, since="1.18") static Optional<net.minecraftforge.forgespi.locating.IModFile> buildFile(net.minecraftforge.forgespi.locating.IModLocator locator, Predicate<cpw.mods.jarhandling.SecureJar> jarTest, BiPredicate<String,String> filter, Path... files)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • buildFile

      @Deprecated(forRemoval=true, since="1.18") static net.minecraftforge.forgespi.locating.IModFile buildFile(net.minecraftforge.forgespi.locating.IModLocator locator, Path... files)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • buildFile

      @Deprecated(forRemoval=true, since="1.18") static Optional<net.minecraftforge.forgespi.locating.IModFile> buildFile(Function<cpw.mods.jarhandling.SecureJar,net.minecraftforge.forgespi.locating.IModFile> mfConstructor, Predicate<cpw.mods.jarhandling.SecureJar> jarTest, BiPredicate<String,String> filter, Path... files)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setModFile

      public void setModFile(net.minecraftforge.forgespi.locating.IModFile file)
    • name

      public String name()
      Specified by:
      name in interface cpw.mods.jarhandling.JarMetadata
    • version

      public String version()
      Specified by:
      version in interface cpw.mods.jarhandling.JarMetadata
    • descriptor

      public ModuleDescriptor descriptor()
      Specified by:
      descriptor in interface cpw.mods.jarhandling.JarMetadata
    • modFile

      public net.minecraftforge.forgespi.locating.IModFile modFile()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object