public class MinecraftServer
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
MinecraftServer(java.lang.String mcVersion,
Type mcType,
java.net.URL mcUrl)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<java.lang.Byte> |
javaVersion()
Get the Java-version of this Minecraft-server.
|
Type |
type()
Get the release-type of this Minecraft-server.
|
java.util.Optional<java.net.URL> |
url()
Get the
URL to the download of this Minecraft-servers JAR-file. |
java.lang.String |
version()
Get the Minecraft-version of this
MinecraftServer. |
protected MinecraftServer(java.lang.String mcVersion,
Type mcType,
java.net.URL mcUrl)
mcVersion - String The Minecraft version of this server.mcType - Type The release-type of this server. Either Type.RELEASE or Type.SNAPSHOT.mcUrl - URL The URL to the download of this servers JAR-file.public java.lang.String version()
MinecraftServer.Stringpublic Type type()
Type.RELEASE or Type.SNAPSHOT.Typepublic java.util.Optional<java.net.URL> url()
URL to the download of this Minecraft-servers JAR-file.URLpublic java.util.Optional<java.lang.Byte> javaVersion()
Byte.