types — minecraft-launcher-lib 8.0 documentation

# types

This module contains all Types for minecraft-launcher-lib. It may help your IDE. You don’t need to use this module directly in your code. If you are not interested in static typing just ignore it. For more information about TypedDict see PEP 589.

class MinecraftOptions

  Bases: `TypedDict`

  username: str
  uuid: str
  token: str
  executablePath: str
  defaultExecutablePath: str
  jvmArguments: list[str]
  launcherName: str
  launcherVersion: str
  gameDirectory: str
  demo: bool
  customResolution: bool
  resolutionWidth: str
  resolutionHeight: str
  server: str
  port: str
  nativesDirectory: str
  enableLoggingConfig: bool
  disableMultiplayer: bool
  disableChat: bool
  quickPlayPath: str | None
  quickPlaySingleplayer: str | None
  quickPlayMultiplayer: str | None
  quickPlayRealms: str | None

class CallbackDict

  Bases: `TypedDict`

  setStatus: Callable[[str], None]
  setProgress: Callable[[int], None]
  setMax: Callable[[int], None]

class LatestMinecraftVersions

  Bases: `TypedDict`

  release: str
  snapshot: str

class MinecraftVersionInfo

  Bases: `TypedDict`

  id: str
  type: str
  releaseTime: datetime
  complianceLevel: int

class FabricMinecraftVersion

  Bases: `TypedDict`

  version: str
  stable: bool

class FabricLoader

  Bases: `TypedDict`

  separator: str
  build: int
  maven: str
  version: str
  stable: bool

class QuiltMinecraftVersion

  Bases: `TypedDict`

  version: str
  stable: bool

class QuiltLoader

  Bases: `TypedDict`

  separator: str
  build: int
  maven: str
  version: str

class JavaInformation

  Bases: `TypedDict`

  path: str
  name: str
  version: str
  java_path: str
  javaw_path: str | None
  is_64bit: bool
  openjdk: bool

class VanillaLauncherProfileResolution

  Bases: `TypedDict`

  height: int
  width: int

class VanillaLauncherProfile

  Bases: `TypedDict`

  name: str
  version: str | None
  versionType: Literal['latest-release', 'latest-snapshot', 'custom']
  gameDirectory: str | None
  javaExecutable: str | None
  javaArguments: list[str] | None
  customResolution: VanillaLauncherProfileResolution | None

class MrpackInformation

  Bases: `TypedDict`

  name: str
  summary: str
  versionId: str
  formatVersion: int
  minecraftVersion: str
  optionalFiles: list[str]

class MrpackInstallOptions

  Bases: `TypedDict`

  optionalFiles: list[str]
  skipDependenciesInstall: bool

class JvmRuntimeInformation

  Bases: `TypedDict`

  name: str
  released: datetime

class VersionRuntimeInformation

  Bases: `TypedDict`

  name: str
  javaMajorVersion: int

class MinecraftNews

  Bases: `TypedDict`

  version: Literal[1]
  entries: list[_NewsEntry]

class JavaPatchNotes

  Bases: `TypedDict`

  version: Literal[1]
  entries: list[_JavaPatchNoteEntry]

View the source code of this module