Class CommonLaunchHandler
java.lang.Object
net.minecraftforge.fml.loading.targets.CommonLaunchHandler
- All Implemented Interfaces:
cpw.mods.modlauncher.api.ILaunchHandlerService
- Direct Known Subclasses:
CommonDevLaunchHandler
,ForgeProdLaunchHandler
public abstract class CommonLaunchHandler
extends Object
implements cpw.mods.modlauncher.api.ILaunchHandlerService
This is required by FMLLoader because ILaunchHandlerService doesn't have the context we need.
I need to clean this up to make proper api. But that involves editing ModLauncher itself which i'm not gunna do right now.
So until that happens, guess this is public api.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final CommonLaunchHandler.LaunchType
protected static final CommonLaunchHandler.LaunchType
protected static final org.slf4j.Logger
private final String
protected static final CommonLaunchHandler.LaunchType
protected static final CommonLaunchHandler.LaunchType
protected final CommonLaunchHandler.LaunchType
-
Constructor Summary
ModifierConstructorDescriptionprotected
CommonLaunchHandler
(CommonLaunchHandler.LaunchType type, String prefix) -
Method Summary
Modifier and TypeMethodDescriptionvoid
configureTransformationClassLoader
(cpw.mods.modlauncher.api.ITransformingClassLoaderBuilder builder) net.minecraftforge.api.distmarker.Dist
getDist()
abstract String
protected static Path
getPathFromResource
(String resource) boolean
isData()
boolean
cpw.mods.modlauncher.api.ServiceRunner
launchService
(String[] arguments, ModuleLayer gameLayer) protected cpw.mods.modlauncher.api.ServiceRunner
makeService
(String[] arguments, ModuleLayer gameLayer) name()
protected String[]
preLaunch
(String[] arguments, ModuleLayer layer) protected void
runTarget
(String module, String target, 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
-
Field Details
-
LOGGER
protected static final org.slf4j.Logger LOGGER -
type
-
prefix
-
CLIENT
-
DATA
-
SERVER
-
SERVER_GAMETEST
-
-
Constructor Details
-
CommonLaunchHandler
-
-
Method Details
-
name
- Specified by:
name
in interfacecpw.mods.modlauncher.api.ILaunchHandlerService
-
getDist
public net.minecraftforge.api.distmarker.Dist getDist() -
isData
public boolean isData() -
isProduction
public boolean isProduction() -
getNaming
-
getMinecraftPaths
-
configureTransformationClassLoader
public void configureTransformationClassLoader(cpw.mods.modlauncher.api.ITransformingClassLoaderBuilder builder) - Specified by:
configureTransformationClassLoader
in interfacecpw.mods.modlauncher.api.ILaunchHandlerService
-
preLaunch
-
launchService
public cpw.mods.modlauncher.api.ServiceRunner launchService(String[] arguments, ModuleLayer gameLayer) - Specified by:
launchService
in interfacecpw.mods.modlauncher.api.ILaunchHandlerService
-
makeService
protected cpw.mods.modlauncher.api.ServiceRunner makeService(String[] arguments, ModuleLayer gameLayer) -
runTarget
protected void runTarget(String module, String target, String[] arguments, ModuleLayer layer) throws Throwable - Throws:
Throwable
-
getPathFromResource
-