Class AbstractModProvider
java.lang.Object
net.minecraftforge.fml.loading.moddiscovery.AbstractModProvider
- All Implemented Interfaces:
net.minecraftforge.forgespi.locating.IModProvider
- Direct Known Subclasses:
ClasspathLocator
,ForgeDevLocator
,ForgeUserdevLocator
,JarInJarDependencyLocator
,MinecraftLocator
,ModsFolderLocator
@Internal
public abstract class AbstractModProvider
extends Object
implements net.minecraftforge.forgespi.locating.IModProvider
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static final record
private static final class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected net.minecraftforge.forgespi.locating.IModLocator.ModFileOrException
protected net.minecraftforge.forgespi.locating.IModLocator.ModFileOrException
protected String
void
initArguments
(Map<String, ?> arguments) boolean
isValid
(net.minecraftforge.forgespi.locating.IModFile modFile) protected net.minecraftforge.forgespi.language.IModFileInfo
manifestParser
(net.minecraftforge.forgespi.locating.IModFile mod) void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraftforge.forgespi.locating.IModProvider
name
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
MODS_TOML
- See Also:
-
-
Constructor Details
-
AbstractModProvider
public AbstractModProvider()
-
-
Method Details
-
createMod
-
createMod
@Nullable protected net.minecraftforge.forgespi.locating.IModLocator.ModFileOrException createMod(Path path, boolean ignoreUnknown) -
manifestParser
protected net.minecraftforge.forgespi.language.IModFileInfo manifestParser(net.minecraftforge.forgespi.locating.IModFile mod) -
isValid
public boolean isValid(net.minecraftforge.forgespi.locating.IModFile modFile) - Specified by:
isValid
in interfacenet.minecraftforge.forgespi.locating.IModProvider
-
initArguments
- Specified by:
initArguments
in interfacenet.minecraftforge.forgespi.locating.IModProvider
-
getDefaultJarModType
-
scanFile
public void scanFile(net.minecraftforge.forgespi.locating.IModFile file, Consumer<Path> pathConsumer) - Specified by:
scanFile
in interfacenet.minecraftforge.forgespi.locating.IModProvider
-