public final class MinecraftClient
extends java.lang.Object
| 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. |
public java.lang.String version()
MinecraftClient instance.public Type type()
Type.RELEASE or Type.SNAPSHOT.Type.RELEASE or Type.SNAPSHOT.public java.net.URL url()
URL to this versions manifest.public MinecraftServer server()
MinecraftServer for this Minecraft version, wrapped in an Optional.Optionalpublic java.util.Optional<java.util.List<ForgeInstance>> forge()
ForgeInstance for this client, wrapped in an Optional.Optional.