Module minecraft

Source
Expand description

Minecraft related functionality

Modules§

models
Models for interacting with Minecraft servers

Structs§

FabricIntermediaryInfofabric
Information about the intermediary.
FabricLoaderInfofabric
Information about the loader.
FabricLoaderSummaryfabric
An entry in the fabric loader manifest representing a single version.
FabricVersionDatafabric
Extension to the minecraft VersionData.
GameProcessHandle
Handle to the game process.
InstallOptions
Options for installing Minecraft.
InstallOptionsBuilder
Builder for InstallOptions.
LaunchOptions
Options for launching Minecraft. The options can be created using the builder pattern:
LaunchOptionsBuilder
Builder for LaunchOptions.
LoaderModloader-mods
Represents a single loader mod.
LogFilelog-files
Represents a single log file. On each launch the game creates a new log file and compresses the old one.
Resourcepackresourcepacks
Represents a single resourcepack.
SaveGamesave-games
Represents a single save game.
Screenshotscreenshots
Represents a single screenshot.
Serverservers
Represents a single server.
Shaderpackshaderpacks
Represents a single shaderpack.

Enums§

AcceptTexturesservers
Whether to install a server resource pack
AssetInstallationUpdate
Update of asset installation
ClientInstallationUpdate
Update of client installation
Difficultysave-games
Difficulty of a save game
GameType
Game type of a save game
InstallOptionsBuilderError
Error type for InstallOptionsBuilder
InstallationUpdate
Installation Update that is sent during installation.
LibraryInstallationUpdate
Update of library installation
LogConfigInstallationUpdate
Update of log config installation
LogFileTypelog-files
Whether the file is compressed or in plain text.
ResourcepackTyperesourcepacks
Whether the file is a resourcepack or texturepack.

Traits§

GameProcess
Trait for game handles to provide the same API on all platforms.

Functions§

build_fabric_launch_commandfabric
Builds the launch command for Minecraft. The game needs to be installed to launch.
build_launch_command
Builds the launch command for Minecraft. The game needs to be installed to launch.
install_assets
Installs assets as defined in the asset index.
install_client
Installs the client file.
install_fabric_librariesfabric
Installs all fabric libraries as defined in the provided version data.
install_libraries
Installs all libraries as defined in the provided version data. Also extracts native versions of said libraries.
install_log_config
Installs the log config file.
load_loader_modsloader-mods
Loads all loader mods from the minecraft folder.
load_log_fileslog-files
Loads all log files from the minecraft folder.
load_resourcepacksresourcepacks
Loads all resourcepacks from the minecraft folder.
load_save_gamessave-games
Loads all save games from the minecraft folder.
load_screenshotsscreenshots
Loads all screenshots from the minecraft folder.
load_serversservers
Loads all servers from the minecraft folder.
load_shaderpacksshaderpacks
Loads all shaderpacks from the minecraft folder.