2016-12-24 05:55:17 +01:00
|
|
|
package net.ME1312.SubServers.Bungee.Host;
|
2016-12-05 04:21:04 +01:00
|
|
|
|
2016-12-24 05:55:17 +01:00
|
|
|
import net.ME1312.SubServers.Bungee.Library.Version.Version;
|
2016-12-05 04:21:04 +01:00
|
|
|
|
|
|
|
import java.util.UUID;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* SubCreator Layout Class
|
|
|
|
*
|
|
|
|
* @author ME1312
|
|
|
|
*/
|
|
|
|
public abstract class SubCreator {
|
|
|
|
public enum ServerType {
|
|
|
|
SPIGOT,
|
|
|
|
VANILLA,
|
|
|
|
SPONGE,
|
|
|
|
}
|
|
|
|
|
2016-12-19 01:38:02 +01:00
|
|
|
public abstract boolean create(UUID player, String name, ServerType type, Version version, int memory, int port);
|
|
|
|
public boolean create(String name, ServerType type, Version version, int memory, int port) {
|
|
|
|
return create(null, name, type, version, memory, port);
|
2016-12-05 04:21:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public abstract void waitFor() throws InterruptedException;
|
|
|
|
|
|
|
|
public abstract Host getHost();
|
|
|
|
|
2016-12-15 22:04:39 +01:00
|
|
|
public abstract String getGitBashDirectory();
|
|
|
|
|
2016-12-05 04:21:04 +01:00
|
|
|
public abstract boolean isBusy();
|
|
|
|
}
|