public class InternalSubCreator extends SubCreator
SubCreator.ServerType
Constructor and Description |
---|
InternalSubCreator(Host host,
java.lang.String gitBash) |
Modifier and Type | Method and Description |
---|---|
boolean |
create(java.util.UUID player,
java.lang.String name,
SubCreator.ServerType type,
Version version,
int memory,
int port)
Create a SubServer
|
java.lang.String |
getGitBashDirectory()
Gets the Git Bash install directory
|
Host |
getHost()
Gets the host this creator belongs to
|
boolean |
isBusy()
Gets the status of SubCreator
|
void |
terminate()
Terminate SubCreator
|
void |
waitFor()
Wait for SubCreator to Finish
|
create
public InternalSubCreator(Host host, java.lang.String gitBash)
public boolean create(java.util.UUID player, java.lang.String name, SubCreator.ServerType type, Version version, int memory, int port)
SubCreator
create
in class SubCreator
player
- Player Creatingname
- Server Nametype
- Server Typeversion
- Server Versionmemory
- Server Memory Amount (in MB)port
- Server Port Numberpublic void terminate()
SubCreator
terminate
in class SubCreator
public void waitFor() throws java.lang.InterruptedException
SubCreator
waitFor
in class SubCreator
java.lang.InterruptedException
public Host getHost()
SubCreator
getHost
in class SubCreator
public java.lang.String getGitBashDirectory()
SubCreator
getGitBashDirectory
in class SubCreator
public boolean isBusy()
SubCreator
isBusy
in class SubCreator