Class MultiVersionModReader
java.lang.Object
mods.thecomputerizer.theimpossiblelibrary.neoforge.v21.core.MultiVersionModReader
- All Implemented Interfaces:
net.neoforged.neoforgespi.locating.IModFileReader,net.neoforged.neoforgespi.locating.IOrderedProvider
public class MultiVersionModReader
extends Object
implements net.neoforged.neoforgespi.locating.IModFileReader
-
Field Summary
Fields inherited from interface net.neoforged.neoforgespi.locating.IOrderedProvider
DEFAULT_PRIORITY, HIGHEST_SYSTEM_PRIORITY, LOWEST_SYSTEM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintTry reading multiversion mods first so they can be filtered out from normal mod loading earlier.@Nullable net.neoforged.neoforgespi.locating.IModFileread(cpw.mods.jarhandling.JarContents jar, net.neoforged.neoforgespi.locating.ModFileDiscoveryAttributes attributes)
-
Constructor Details
-
MultiVersionModReader
public MultiVersionModReader()
-
-
Method Details
-
getPriority
public int getPriority()Try reading multiversion mods first so they can be filtered out from normal mod loading earlier. Don't use HIGHEST_SYSTEM_PRIORITY to avoid potential conflicts with important readers. DEFAULT_PRIORITY = 0- Specified by:
getPriorityin interfacenet.neoforged.neoforgespi.locating.IOrderedProvider
-
read
@Nullable public @Nullable net.neoforged.neoforgespi.locating.IModFile read(cpw.mods.jarhandling.JarContents jar, net.neoforged.neoforgespi.locating.ModFileDiscoveryAttributes attributes) - Specified by:
readin interfacenet.neoforged.neoforgespi.locating.IModFileReader
-