Class CommonLaunchHandler
java.lang.Object
net.neoforged.fml.loading.targets.CommonLaunchHandler
- All Implemented Interfaces:
ILaunchHandlerService
- Direct Known Subclasses:
NeoForgeClientLaunchHandler
,NeoForgeDevLaunchHandler
,NeoForgeServerLaunchHandler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
clientService
(String[] arguments, ModuleLayer layer) void
collectAdditionalModFileLocators
(VersionInfo versionInfo, Consumer<IModFileCandidateLocator> output) Return additional locators to be used for locating mods when this launch handler is used.abstract net.neoforged.api.distmarker.Dist
getDist()
abstract boolean
launchService
(String[] arguments, ModuleLayer gameLayer) private void
Forces the log4j2 logging context to use the configuration shipped with fml_loader.protected String[]
preLaunch
(String[] arguments, ModuleLayer layer) protected abstract void
runService
(String[] arguments, ModuleLayer gameLayer) protected void
runTarget
(String target, String[] arguments, ModuleLayer layer) protected void
serverService
(String[] arguments, ModuleLayer layer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface cpw.mods.modlauncher.api.ILaunchHandlerService
getPaths, name
-
Field Details
-
LOGGER
protected static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
CommonLaunchHandler
public CommonLaunchHandler()
-
-
Method Details
-
getDist
public abstract net.neoforged.api.distmarker.Dist getDist() -
isProduction
public abstract boolean isProduction() -
collectAdditionalModFileLocators
public void collectAdditionalModFileLocators(VersionInfo versionInfo, Consumer<IModFileCandidateLocator> output) Return additional locators to be used for locating mods when this launch handler is used. -
preLaunch
-
overwriteLoggingConfiguration
Forces the log4j2 logging context to use the configuration shipped with fml_loader. -
getGroupedModFolders
-
launchService
- Specified by:
launchService
in interfaceILaunchHandlerService
-
runService
- Throws:
Throwable
-
clientService
- Throws:
Throwable
-
serverService
- Throws:
Throwable
-
runTarget
- Throws:
Throwable
-