Minecraft-Server-Launcher/ServerType.java

21 lines
393 B
Java
Raw Normal View History

2018-01-19 21:43:03 +01:00
import java.util.ArrayList;
/**
* Has a name and contains a list of valid server versions.
*/
2018-01-18 23:18:45 +01:00
public class ServerType {
private String name;
2018-01-19 00:43:33 +01:00
private String[] versions;
2018-01-18 23:18:45 +01:00
2018-01-19 00:43:33 +01:00
public ServerType(String name, String[] versions) {
2018-01-18 23:18:45 +01:00
this.name = name;
this.versions = versions;
}
public String getName() {
return this.name;
}
2018-01-19 21:43:03 +01:00
public String[] getVersions() {
2018-01-18 23:18:45 +01:00
return this.versions;
}
}