Package pro.gravit.launcher.client
Class ClientLauncherProcess
- java.lang.Object
-
- pro.gravit.launcher.client.ClientLauncherProcess
-
public class ClientLauncherProcess extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClientLauncherProcess.ClientParams
-
Field Summary
Fields Modifier and Type Field Description intbitsjava.nio.file.PathexecuteFilebooleanisStartedjava.nio.file.PathjavaDirjava.util.List<java.lang.String>jvmArgsjava.lang.StringmainClassClientLauncherProcess.ClientParamsparamsjava.util.List<java.lang.String>systemClassPathjava.util.List<java.lang.String>systemClientArgsjava.util.Map<java.lang.String,java.lang.String>systemEnvbooleanuseLegacyJavaClassPathPropertyjava.nio.file.PathworkDir
-
Constructor Summary
Constructors Constructor Description ClientLauncherProcess(java.nio.file.Path executeFile, java.nio.file.Path workDir, java.nio.file.Path javaDir, java.lang.String mainClass)ClientLauncherProcess(java.nio.file.Path clientDir, java.nio.file.Path assetDir, java.nio.file.Path javaDir, java.nio.file.Path resourcePackDir, pro.gravit.launcher.profiles.ClientProfile profile, pro.gravit.launcher.profiles.PlayerProfile playerProfile, pro.gravit.launcher.profiles.optional.OptionalView view, java.lang.String accessToken, pro.gravit.launcher.hasher.HashedDir clientHDir, pro.gravit.launcher.hasher.HashedDir assetHDir, pro.gravit.launcher.hasher.HashedDir jvmHDir)ClientLauncherProcess(java.nio.file.Path clientDir, java.nio.file.Path assetDir, java.nio.file.Path javaDir, pro.gravit.launcher.profiles.ClientProfile profile, pro.gravit.launcher.profiles.PlayerProfile playerProfile, java.lang.String accessToken, pro.gravit.launcher.hasher.HashedDir clientHDir, pro.gravit.launcher.hasher.HashedDir assetHDir, pro.gravit.launcher.hasher.HashedDir jvmHDir)ClientLauncherProcess(java.nio.file.Path clientDir, java.nio.file.Path assetDir, pro.gravit.launcher.profiles.ClientProfile profile, pro.gravit.launcher.profiles.PlayerProfile playerProfile, java.lang.String accessToken, pro.gravit.launcher.hasher.HashedDir clientHDir, pro.gravit.launcher.hasher.HashedDir assetHDir, pro.gravit.launcher.hasher.HashedDir jvmHDir)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetPathSeparator()java.lang.ProcessgetProcess()voidrunWriteParams(java.net.SocketAddress address)voidstart(boolean pipeOutput)
-
-
-
Field Detail
-
params
public final ClientLauncherProcess.ClientParams params
-
jvmArgs
public final java.util.List<java.lang.String> jvmArgs
-
systemClientArgs
public final java.util.List<java.lang.String> systemClientArgs
-
systemClassPath
public final java.util.List<java.lang.String> systemClassPath
-
systemEnv
public final java.util.Map<java.lang.String,java.lang.String> systemEnv
-
mainClass
public final java.lang.String mainClass
-
executeFile
public java.nio.file.Path executeFile
-
workDir
public java.nio.file.Path workDir
-
javaDir
public java.nio.file.Path javaDir
-
bits
public int bits
-
useLegacyJavaClassPathProperty
public boolean useLegacyJavaClassPathProperty
-
isStarted
public boolean isStarted
-
-
Constructor Detail
-
ClientLauncherProcess
public ClientLauncherProcess(java.nio.file.Path executeFile, java.nio.file.Path workDir, java.nio.file.Path javaDir, java.lang.String mainClass)
-
ClientLauncherProcess
public ClientLauncherProcess(java.nio.file.Path clientDir, java.nio.file.Path assetDir, java.nio.file.Path javaDir, pro.gravit.launcher.profiles.ClientProfile profile, pro.gravit.launcher.profiles.PlayerProfile playerProfile, java.lang.String accessToken, pro.gravit.launcher.hasher.HashedDir clientHDir, pro.gravit.launcher.hasher.HashedDir assetHDir, pro.gravit.launcher.hasher.HashedDir jvmHDir)
-
ClientLauncherProcess
public ClientLauncherProcess(java.nio.file.Path clientDir, java.nio.file.Path assetDir, pro.gravit.launcher.profiles.ClientProfile profile, pro.gravit.launcher.profiles.PlayerProfile playerProfile, java.lang.String accessToken, pro.gravit.launcher.hasher.HashedDir clientHDir, pro.gravit.launcher.hasher.HashedDir assetHDir, pro.gravit.launcher.hasher.HashedDir jvmHDir)
-
ClientLauncherProcess
public ClientLauncherProcess(java.nio.file.Path clientDir, java.nio.file.Path assetDir, java.nio.file.Path javaDir, java.nio.file.Path resourcePackDir, pro.gravit.launcher.profiles.ClientProfile profile, pro.gravit.launcher.profiles.PlayerProfile playerProfile, pro.gravit.launcher.profiles.optional.OptionalView view, java.lang.String accessToken, pro.gravit.launcher.hasher.HashedDir clientHDir, pro.gravit.launcher.hasher.HashedDir assetHDir, pro.gravit.launcher.hasher.HashedDir jvmHDir)
-
-
Method Detail
-
getPathSeparator
public static java.lang.String getPathSeparator()
-
start
public void start(boolean pipeOutput) throws java.io.IOException, java.lang.InterruptedException- Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
runWriteParams
public void runWriteParams(java.net.SocketAddress address) throws java.io.IOException- Throws:
java.io.IOException
-
getProcess
public java.lang.Process getProcess()
-
-