Package net.minecraftforge.fml.loading
Class FMLCommonLaunchHandler
- java.lang.Object
-
- net.minecraftforge.fml.loading.FMLCommonLaunchHandler
-
- Direct Known Subclasses:
FMLClientLaunchProvider
,FMLDevClientLaunchProvider
,FMLDevServerLaunchProvider
,FMLServerLaunchProvider
,FMLUserdevLaunchProvider
public abstract class FMLCommonLaunchHandler extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.nio.file.Path>
additionalLibraries
private static org.apache.logging.log4j.Logger
LOGGER
private static java.util.List<java.lang.String>
SKIPPACKAGES
-
Constructor Summary
Constructors Constructor Description FMLCommonLaunchHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) void
addLibraries(java.util.List<ModFile> libraries)
protected void
beforeStart(cpw.mods.modlauncher.api.ITransformingClassLoader launchClassLoader)
private org.apache.commons.lang3.tuple.Pair<java.lang.String,java.nio.file.Path>
buildModPair(java.lang.String[] splitString)
void
configureTransformationClassLoader(cpw.mods.modlauncher.api.ITransformingClassLoaderBuilder builder)
protected java.util.function.Function<java.net.URLConnection,java.util.Optional<java.util.jar.Manifest>>
getClassLoaderManifestLocatorFunction()
protected java.util.function.Function<java.lang.String,java.util.Enumeration<java.net.URL>>
getClassLoaderResourceEnumerationFunction()
abstract net.minecraftforge.api.distmarker.Dist
getDist()
java.nio.file.Path
getForgePath(java.lang.String mcVersion, java.lang.String forgeVersion, java.lang.String forgeGroup)
java.nio.file.Path[]
getMCPaths(java.lang.String mcVersion, java.lang.String mcpVersion, java.lang.String forgeVersion, java.lang.String forgeGroup)
protected abstract java.lang.String
getNaming()
protected java.util.function.Predicate<java.lang.String>
getPackagePredicate()
boolean
isData()
boolean
isProduction()
protected void
processModClassesEnvironmentVariable(java.util.Map<java.lang.String,java.util.List<org.apache.commons.lang3.tuple.Pair<java.nio.file.Path,java.util.List<java.nio.file.Path>>>> arguments)
void
setup(cpw.mods.modlauncher.api.IEnvironment environment, java.util.Map<java.lang.String,?> arguments)
protected void
validatePaths(java.nio.file.Path forgePath, java.nio.file.Path[] mcPaths, java.lang.String forgeVersion, java.lang.String mcVersion, java.lang.String mcpVersion)
-
-
-
Method Detail
-
getPackagePredicate
protected java.util.function.Predicate<java.lang.String> getPackagePredicate()
-
getForgePath
public java.nio.file.Path getForgePath(java.lang.String mcVersion, java.lang.String forgeVersion, java.lang.String forgeGroup)
-
getMCPaths
public java.nio.file.Path[] getMCPaths(java.lang.String mcVersion, java.lang.String mcpVersion, java.lang.String forgeVersion, java.lang.String forgeGroup)
-
configureTransformationClassLoader
public void configureTransformationClassLoader(cpw.mods.modlauncher.api.ITransformingClassLoaderBuilder builder)
-
setup
public void setup(cpw.mods.modlauncher.api.IEnvironment environment, java.util.Map<java.lang.String,?> arguments)
-
getDist
public abstract net.minecraftforge.api.distmarker.Dist getDist()
-
beforeStart
protected void beforeStart(cpw.mods.modlauncher.api.ITransformingClassLoader launchClassLoader)
-
processModClassesEnvironmentVariable
protected void processModClassesEnvironmentVariable(java.util.Map<java.lang.String,java.util.List<org.apache.commons.lang3.tuple.Pair<java.nio.file.Path,java.util.List<java.nio.file.Path>>>> arguments)
-
buildModPair
private org.apache.commons.lang3.tuple.Pair<java.lang.String,java.nio.file.Path> buildModPair(java.lang.String[] splitString)
-
validatePaths
protected void validatePaths(java.nio.file.Path forgePath, java.nio.file.Path[] mcPaths, java.lang.String forgeVersion, java.lang.String mcVersion, java.lang.String mcpVersion)
-
getClassLoaderResourceEnumerationFunction
protected java.util.function.Function<java.lang.String,java.util.Enumeration<java.net.URL>> getClassLoaderResourceEnumerationFunction()
-
getClassLoaderManifestLocatorFunction
protected java.util.function.Function<java.net.URLConnection,java.util.Optional<java.util.jar.Manifest>> getClassLoaderManifestLocatorFunction()
-
getNaming
protected abstract java.lang.String getNaming()
-
addLibraries
void addLibraries(java.util.List<ModFile> libraries)
-
isProduction
public boolean isProduction()
-
isData
public boolean isData()
-
-