public abstract class FMLCommonLaunchHandler
extends java.lang.Object
Modifier and Type | Field and 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 and Description |
---|
FMLCommonLaunchHandler() |
Modifier and Type | Method and 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.lang.String,java.util.Optional<java.net.URL>> |
getClassLoaderLocatorFunction() |
protected java.util.function.Function<java.net.URLConnection,java.util.Optional<java.util.jar.Manifest>> |
getClassLoaderManifestLocatorFunction() |
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 |
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) |
private static final org.apache.logging.log4j.Logger LOGGER
private static final java.util.List<java.lang.String> SKIPPACKAGES
private final java.util.List<java.nio.file.Path> additionalLibraries
protected java.util.function.Predicate<java.lang.String> getPackagePredicate()
public java.nio.file.Path getForgePath(java.lang.String mcVersion, java.lang.String forgeVersion, java.lang.String forgeGroup)
public java.nio.file.Path[] getMCPaths(java.lang.String mcVersion, java.lang.String mcpVersion, java.lang.String forgeVersion, java.lang.String forgeGroup)
public void configureTransformationClassLoader(cpw.mods.modlauncher.api.ITransformingClassLoaderBuilder builder)
public void setup(cpw.mods.modlauncher.api.IEnvironment environment, java.util.Map<java.lang.String,?> arguments)
public abstract net.minecraftforge.api.distmarker.Dist getDist()
protected void beforeStart(cpw.mods.modlauncher.api.ITransformingClassLoader launchClassLoader)
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)
private org.apache.commons.lang3.tuple.Pair<java.lang.String,java.nio.file.Path> buildModPair(java.lang.String[] splitString)
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)
protected java.util.function.Function<java.lang.String,java.util.Optional<java.net.URL>> getClassLoaderLocatorFunction()
protected java.util.function.Function<java.net.URLConnection,java.util.Optional<java.util.jar.Manifest>> getClassLoaderManifestLocatorFunction()
protected abstract java.lang.String getNaming()
void addLibraries(java.util.List<ModFile> libraries)
public boolean isProduction()