Uses of Interface
net.neoforged.fml.jarcontents.JarContents
Packages that use JarContents
Package
Description
-
Uses of JarContents in net.neoforged.fml.classloading
Fields in net.neoforged.fml.classloading declared as JarContentsModifier and TypeFieldDescriptionprivate final JarContentsJarContentsModule.contentsThe field for thecontentsrecord component.private final JarContentsJarContentsModuleReader.contentsprivate final JarContentsJarContentsModuleReference.contentsMethods in net.neoforged.fml.classloading that return JarContentsModifier and TypeMethodDescriptionJarContentsModule.contents()Returns the value of thecontentsrecord component.Methods in net.neoforged.fml.classloading with parameters of type JarContentsModifier and TypeMethodDescriptionprivate static URIJarContentsModuleReference.getModuleLocation(JarContents contents) Constructors in net.neoforged.fml.classloading with parameters of type JarContentsModifierConstructorDescriptionJarContentsModule(JarContents contents) JarContentsModule(JarContents contents, ModuleDescriptor moduleDescriptor) Creates an instance of aJarContentsModulerecord class.JarContentsModuleReader(JarContents contents) (package private)JarContentsModuleReference(ModuleDescriptor descriptor, JarContents contents) -
Uses of JarContents in net.neoforged.fml.jarcontents
Classes in net.neoforged.fml.jarcontents that implement JarContentsModifier and TypeClassDescriptionfinal classA compositeJarContentsimplementation which combines the contents of other jar contents transparently, and optionally applies filtering.final classAn immutable, empty jar content, which is identified by aPath, which may or may not exist.final classfinal classFields in net.neoforged.fml.jarcontents declared as JarContentsMethods in net.neoforged.fml.jarcontents that return JarContentsModifier and TypeMethodDescriptionstatic JarContentsCreates an empty jar contents instance.static JarContentsJarContents.ofFilteredPaths(Collection<JarContents.FilteredPath> paths) Creates jar contents from paths with optional per-path filters.static JarContentsCreates jar contents from a single path.static JarContentsJarContents.ofPaths(Collection<Path> paths) Creates jar contents from multiple paths, treating them as overlay layers.Methods in net.neoforged.fml.jarcontents that return types with arguments of type JarContentsConstructor parameters in net.neoforged.fml.jarcontents with type arguments of type JarContentsModifierConstructorDescriptionCompositeJarContents(List<JarContents> delegates) Constructs a new composite jar contents without filtering.CompositeJarContents(List<JarContents> delegates, @Nullable List<@Nullable JarContents.PathFilter> filters) Constructs a composite jar contents object with optional filtering. -
Uses of JarContents in net.neoforged.fml.jarmoduleinfo
Methods in net.neoforged.fml.jarmoduleinfo with parameters of type JarContentsModifier and TypeMethodDescriptionAuomaticModuleJarModuleInfo.createDescriptor(JarContents contents) JarModuleInfo.createDescriptor(JarContents contents) ModuleJarModuleInfo.createDescriptor(JarContents contents) static AuomaticModuleJarModuleInfoAuomaticModuleJarModuleInfo.from(JarContents contents) static JarModuleInfoJarModuleInfo.from(JarContents jar) Builds the jar metadata for a jar following the normal rules for Java jars.static voidJarModuleInfo.scanAutomaticModule(JarContents jar, ModuleDescriptor.Builder builder, String... excludedRootDirectories) Scans an automatic module for the following and applies them to the given module builder.static voidModuleDescriptorFactory.scanAutomaticModule(JarContents jar, ModuleDescriptor.Builder builder, String... excludedRootDirectories) JarModuleInfo.scanModulePackages(JarContents jar) Scans a given Jar for all packages that contain files for use withModuleDescriptor.read(java.io.InputStream, java.util.function.Supplier<java.util.Set<java.lang.String>>).ModuleDescriptorFactory.scanModulePackages(JarContents jar) -
Uses of JarContents in net.neoforged.fml.loading
Methods in net.neoforged.fml.loading with parameters of type JarContentsModifier and TypeMethodDescriptionFMLLoader.getBasePaths(JarContents contents, boolean ignoreFilter) Method parameters in net.neoforged.fml.loading with type arguments of type JarContentsModifier and TypeMethodDescriptionprivate voidFMLLoader.appendLoader(String loaderName, List<JarContents> jars) Loads the given services into a URL classloader. -
Uses of JarContents in net.neoforged.fml.loading.moddiscovery
Fields in net.neoforged.fml.loading.moddiscovery declared as JarContentsFields in net.neoforged.fml.loading.moddiscovery with type parameters of type JarContentsModifier and TypeFieldDescriptionprivate final Predicate<JarContents> IncompatibleModReason.identMethods in net.neoforged.fml.loading.moddiscovery that return JarContentsMethods in net.neoforged.fml.loading.moddiscovery that return types with arguments of type JarContentsModifier and TypeMethodDescriptionprivate static Predicate<JarContents> IncompatibleModReason.filePresent(String filename) Methods in net.neoforged.fml.loading.moddiscovery with parameters of type JarContentsModifier and TypeMethodDescriptionModDiscoverer.DiscoveryPipeline.addJarContent(JarContents jarContents, ModFileDiscoveryAttributes attributes, IncompatibleFileReporting reporting) private static voidModDiscoverer.closeJarContents(JarContents jarContents) ModJarMetadata.createDescriptor(JarContents contents) static Optional<IncompatibleModReason> IncompatibleModReason.detect(JarContents jar) private static IModFile.TypeModFile.parseType(JarContents contents) @Nullable IModFileModDiscoverer.DiscoveryPipeline.readModFile(JarContents jarContents, ModFileDiscoveryAttributes attributes) Constructors in net.neoforged.fml.loading.moddiscovery with parameters of type JarContentsModifierConstructorDescriptionModFile(JarContents contents, @Nullable JarModuleInfo metadata, ModFileInfoParser parser, IModFile.Type type, ModFileDiscoveryAttributes discoveryAttributes) ModFile(JarContents contents, @Nullable JarModuleInfo metadata, ModFileInfoParser parser, ModFileDiscoveryAttributes attributes) ModFile(JarContents contents, ModFileInfoParser parser, ModFileDiscoveryAttributes attributes) Constructor parameters in net.neoforged.fml.loading.moddiscovery with type arguments of type JarContents -
Uses of JarContents in net.neoforged.fml.loading.moddiscovery.locators
Fields in net.neoforged.fml.loading.moddiscovery.locators declared as JarContentsModifier and TypeFieldDescriptionprivate JarContentsRequiredSystemFiles.clientClassesprivate JarContentsRequiredSystemFiles.clientResourcesprivate JarContentsRequiredSystemFiles.commonClassesprivate JarContentsRequiredSystemFiles.commonResourcesprivate JarContentsRequiredSystemFiles.neoForgeClientClassesprivate JarContentsRequiredSystemFiles.neoForgeCommonClassesprivate JarContentsRequiredSystemFiles.neoForgeResourcesMethods in net.neoforged.fml.loading.moddiscovery.locators that return JarContentsModifier and TypeMethodDescriptionprivate static @Nullable JarContentsRequiredSystemFiles.findAndOpen(ILaunchContext context, ClassLoader loader, List<JarContents> alreadyOpened, String relativePath) private static JarContentsRequiredSystemFiles.findNeoForgeResources(List<JarContents> locatedRoots, ClassLoader loader) RequiredSystemFiles.getClientClasses()RequiredSystemFiles.getClientResources()private static JarContentsGameLocator.getCombinedMinecraftJar(ILaunchContext context, RequiredSystemFiles systemFiles) RequiredSystemFiles.getCommonClasses()RequiredSystemFiles.getCommonResources()RequiredSystemFiles.getNeoForgeClientClasses()RequiredSystemFiles.getNeoForgeCommonClasses()RequiredSystemFiles.getNeoForgeResources()private static JarContentsRequiredSystemFiles.openOrThrow(Path root) Methods in net.neoforged.fml.loading.moddiscovery.locators that return types with arguments of type JarContentsModifier and TypeMethodDescriptionRequiredSystemFiles.getAll()RequiredSystemFiles.getClassesRoots()RequiredSystemFiles.getMinecraftJarComponents()RequiredSystemFiles.getNeoForgeJarComponents()private static List<JarContents> RequiredSystemFiles.uniqueAndNonNull(JarContents... contents) Methods in net.neoforged.fml.loading.moddiscovery.locators with parameters of type JarContentsModifier and TypeMethodDescriptionprivate static voidGameLocator.addContentRoot(List<JarContents.FilteredPath> roots, JarContents jarContents, JarContents.PathFilter filter) private static JarContents.FilteredPathGameLocator.buildFilteredMinecraftResourcesFilteredPath(JarContents container, net.neoforged.api.distmarker.Dist requiredDist, RequiredSystemFiles systemFiles) private static StringGameLocator.detectMinecraftVersion(JarContents mcJarContents) Reads the version.json found in Minecraft jars (both server and client have it) to detect which version of Minecraft is in the given Jar.NeoForgeDevDistCleaner.getMaskedFiles(JarContents minecraftJar, net.neoforged.api.distmarker.Dist currentDist) Loads file masking information from the jar's manifest, masking resource files that should not be present and tellingNeoForgeDevDistCleanerto clean class files that should be masked.private static @Nullable JarContents.PathFilterGameLocator.getMaskedResourceFilter(JarContents jar, net.neoforged.api.distmarker.Dist requiredDist) static booleanNeoForgeDevDistCleaner.supportsDistCleaning(JarContents minecraftModFile) private static List<JarContents> RequiredSystemFiles.uniqueAndNonNull(JarContents... contents) Method parameters in net.neoforged.fml.loading.moddiscovery.locators with type arguments of type JarContentsModifier and TypeMethodDescriptionprivate static voidRequiredSystemFiles.closeAll(Iterable<JarContents> locatedRoots) private static @Nullable JarContentsRequiredSystemFiles.findAndOpen(ILaunchContext context, ClassLoader loader, List<JarContents> alreadyOpened, String relativePath) private static JarContentsRequiredSystemFiles.findNeoForgeResources(List<JarContents> locatedRoots, ClassLoader loader) Constructors in net.neoforged.fml.loading.moddiscovery.locators with parameters of type JarContentsModifierConstructorDescriptionNeoForgeDevDistCleaner(JarContents minecraftModFile, net.neoforged.api.distmarker.Dist requestedDist) -
Uses of JarContents in net.neoforged.fml.loading.moddiscovery.readers
Methods in net.neoforged.fml.loading.moddiscovery.readers with parameters of type JarContentsModifier and TypeMethodDescriptionstatic IModFileJarModsDotTomlModFileReader.createModFile(JarContents contents, ModFileDiscoveryAttributes discoveryAttributes) private static IModFile.TypeJarModsDotTomlModFileReader.getModType(JarContents jar) @Nullable IModFileJarModsDotTomlModFileReader.read(JarContents jar, ModFileDiscoveryAttributes discoveryAttributes) @Nullable IModFileNestedLibraryModReader.read(JarContents jar, ModFileDiscoveryAttributes discoveryAttributes) -
Uses of JarContents in net.neoforged.neoforge.resource
Fields in net.neoforged.neoforge.resource declared as JarContentsModifier and TypeFieldDescriptionprivate final JarContentsJarContentsPackResources.contentsprivate final JarContentsJarContentsPackResources.JarContentsResourcesSupplier.contentsMethods in net.neoforged.neoforge.resource with parameters of type JarContentsModifier and TypeMethodDescriptionstatic Pack.ResourcesSupplierResourcePackLoader.createPackForJarContents(JarContents contents) Constructors in net.neoforged.neoforge.resource with parameters of type JarContentsModifierConstructorDescriptionJarContentsPackResources(PackLocationInfo locationInfo, JarContents contents, String prefix) JarContentsResourcesSupplier(JarContents contents) JarContentsResourcesSupplier(JarContents contents, String prefix) -
Uses of JarContents in net.neoforged.neoforgespi.locating
Methods in net.neoforged.neoforgespi.locating that return JarContentsModifier and TypeMethodDescriptionIModFile.getContents()Returns the contents of the mod file, which allow direct access to files in the mods jar file.Methods in net.neoforged.neoforgespi.locating with parameters of type JarContentsModifier and TypeMethodDescriptionIDiscoveryPipeline.addJarContent(JarContents contents, ModFileDiscoveryAttributes attributes, IncompatibleFileReporting incompatibleFileReporting) static IModFileIModFile.create(JarContents contents, JarModuleInfo metadata, ModFileInfoParser parser) Builds a new mod file instance depending on the current runtime.static IModFileIModFile.create(JarContents contents, JarModuleInfo metadata, ModFileInfoParser parser, IModFile.Type type, ModFileDiscoveryAttributes attributes) Builds a new mod file instance depending on the current runtime.static IModFileIModFile.create(JarContents contents, ModFileInfoParser parser) Builds a new mod file instance depending on the current runtime.static IModFileIModFile.create(JarContents contents, ModFileInfoParser parser, IModFile.Type type, ModFileDiscoveryAttributes attributes) Builds a new mod file instance depending on the current runtime.static IModFileIModFile.create(JarContents contents, ModFileInfoParser parser, ModFileDiscoveryAttributes attributes) Builds a new mod file instance depending on the current runtime.@Nullable IModFileIModFileReader.read(JarContents jar, ModFileDiscoveryAttributes attributes) Provides a mod from the givenjar.@Nullable IModFileIDiscoveryPipeline.readModFile(JarContents jarContents, ModFileDiscoveryAttributes attributes) Use the registered readers to attempt to create a mod-file from the given jar contents.