Class MinecraftClient
-
- All Implemented Interfaces:
public final class MinecraftClientRelevant information about a given Minecraft client.
Griefed
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringversionprivate final Typetypeprivate final URLurlprivate final MinecraftServerminecraftServer
-
Method Summary
Modifier and Type Method Description final StringgetVersion()The Minecraft version, e.g. final TypegetType()Whether this is a release or a snapshot, which is what the release-only gates filter on. final URLgetUrl()This version's own JSON on Mojang's servers — the document that declares the required Java. final MinecraftServergetMinecraftServer()The matching server for this version. final Optional<List<ForgeInstance>>forge()Get the ForgeInstance for this client, wrapped in an Optional. -
-
Method Detail
-
getVersion
final String getVersion()
The Minecraft version, e.g.
1.20.1or26.2.
-
getType
final Type getType()
Whether this is a release or a snapshot, which is what the release-only gates filter on.
-
getUrl
final URL getUrl()
This version's own JSON on Mojang's servers — the document that declares the required Java.
-
getMinecraftServer
final MinecraftServer getMinecraftServer()
The matching server for this version. Not every version has a usable one; see
MinecraftServer.url.
-
forge
final Optional<List<ForgeInstance>> forge()
Get the ForgeInstance for this client, wrapped in an Optional.
- Returns:
Forge instance for this client, wrapped in an Optional.
-
-
-
-