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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final CommonLaunchHandler.LaunchTypeprotected static final CommonLaunchHandler.LaunchTypeprotected static final org.slf4j.Loggerprivate final Stringprotected static final CommonLaunchHandler.LaunchTypeprotected static final CommonLaunchHandler.LaunchTypeprotected final CommonLaunchHandler.LaunchType -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCommonLaunchHandler(CommonLaunchHandler.LaunchType type, String prefix) -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureTransformationClassLoader(cpw.mods.modlauncher.api.ITransformingClassLoaderBuilder builder) net.minecraftforge.api.distmarker.DistgetDist()abstract Stringprotected static PathgetPathFromResource(String resource) protected static PathgetPathFromResource(String resource, ClassLoader cl) booleanisData()booleancpw.mods.modlauncher.api.ServiceRunnerlaunchService(String[] arguments, ModuleLayer gameLayer) protected cpw.mods.modlauncher.api.ServiceRunnermakeService(String[] arguments, ModuleLayer gameLayer) name()protected String[]preLaunch(String[] arguments, ModuleLayer layer) protected voidrunTarget(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, waitMethods 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:
namein 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:
configureTransformationClassLoaderin interfacecpw.mods.modlauncher.api.ILaunchHandlerService
-
preLaunch
-
launchService
public cpw.mods.modlauncher.api.ServiceRunner launchService(String[] arguments, ModuleLayer gameLayer) - Specified by:
launchServicein 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
-
getPathFromResource
-