Class MinecraftClient

  • All Implemented Interfaces:

    
    public final class MinecraftClient
    
                        

    Relevant information about a given Minecraft client.

    Author:

    Griefed

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getVersion() The Minecraft version, e.g.
      final Type getType() Whether this is a release or a snapshot, which is what the release-only gates filter on.
      final URL getUrl() This version's own JSON on Mojang's servers — the document that declares the required Java.
      final MinecraftServer getMinecraftServer() The matching server for this version.
      final Optional<List<ForgeInstance>> forge() Get the ForgeInstance for this client, wrapped in an Optional.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getVersion

         final String getVersion()

        The Minecraft version, e.g. 1.20.1 or 26.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.