public class MinecraftClient
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
MinecraftClient(java.lang.String version,
Type type,
java.net.URL url,
ForgeMeta forgeMeta)
Constructor using version, type and url.
|
protected |
MinecraftClient(java.lang.String version,
Type type,
java.net.URL url,
MinecraftServer server,
ForgeMeta forgeMeta)
Constructor using version, type, url and a
MinecraftServer. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<java.util.List<ForgeInstance>> |
forge()
Get the
ForgeInstance for this client, wrapped in an Optional. |
MinecraftServer |
server()
The
MinecraftServer for this Minecraft version, wrapped in an Optional. |
Type |
type()
Release-type.
|
java.net.URL |
url()
The
URL to this versions manifest. |
java.lang.String |
version()
The Minecraft version of this
MinecraftClient instance. |
protected MinecraftClient(java.lang.String version,
Type type,
java.net.URL url,
ForgeMeta forgeMeta)
version - String The Minecraft version.type - Type Either Type.RELEASE or Type.SNAPSHOT.url - URL Url to this versions manifest.forgeMeta - ForgeMeta to acquire Forge instances for this MinecraftClient version.protected MinecraftClient(java.lang.String version,
Type type,
java.net.URL url,
MinecraftServer server,
ForgeMeta forgeMeta)
MinecraftServer.version - String The Minecraft version.type - Type Either Type.RELEASE or Type.SNAPSHOT.url - URL Url to this versions manifest.server - Instance of MinecraftServerforgeMeta - ForgeMeta to acquire Forge instances for this MinecraftClient version.public java.lang.String version()
MinecraftClient instance.String Minecraft version.public Type type()
Type.RELEASE or Type.SNAPSHOT.Type Either Type.RELEASE or Type.SNAPSHOT.public java.net.URL url()
URL to this versions manifest.URLpublic MinecraftServer server()
MinecraftServer for this Minecraft version, wrapped in an Optional.MinecraftServer wrapped in an Optionalpublic java.util.Optional<java.util.List<ForgeInstance>> forge()
ForgeInstance for this client, wrapped in an Optional.ForgeInstance for this client, wrapped in an Optional.