How angelauramc/amethyst-ios works
Amethyst is an iOS/iPadOS launcher for Minecraft: Java Edition. The intended user journey is to choose an account and game version, configure or install a supported mod loader, then launch and control the game; the README also documents JIT support and graphics/input capabilities. The tree and sampled Java sources show launcher argument/library handling and GLFW adaptation, but most native controller and installer files are headers, so their wiring is represented only where documented or left unconnected. Rendering and platform headers are interfaces, not evidence of runtime call paths.
Main entry points: LauncherProfilesViewController.h Game profiles · Tools.java Launch preparation · GLFW.java GLFW adaptation · ArrayMap.java Array map
Components 21
Launcher runtime
- Launcher UI
Natives/LauncherMenuViewController.h - Game profiles
Natives/LauncherProfilesViewController.h - Minecraft accounts
JavaApp/src/launcher/net/kdt/pojavlaunch/value/MinecraftAccount.java - Launch preparation
JavaApp/src/launcher/net/kdt/pojavlaunch/Tools.java - Class loading
JavaApp/src/launcher/net/kdt/pojavlaunch/PojavClassLoader.java
Game setup
- Version catalog
JavaApp/src/launcher/net/kdt/pojavlaunch/JMinecraftVersionList.java - Mod installers
Natives/installer - Modpack installers
Natives/installer/modpack/ModpackAPI.h
Gameplay
- Game surface
Natives/GameSurfaceView.h - GLFW adaptation
JavaApp/src/lwjgl/org/lwjgl/glfw/GLFW.java - On-screen controls
Natives/customcontrols/ControlLayout.h - Device input
Natives/input/ControllerInput.h - Graphics interfaces
Natives/external/mesa/EGL/eglext.h
iOS platform
- JIT support
Natives/resources/UniversalJIT26.js - Platform detection
JavaApp/src/patchjna_agent/com/sun/jna/Platform.java
Runtime support
- Array map
JavaApp/src/launcher/android/util/ArrayMap.java - Map helpers
JavaApp/src/launcher/android/util/ContainerHelpers.java - Map collections
JavaApp/src/launcher/android/util/MapCollections.java - Empty arrays
JavaApp/src/launcher/android/util/EmptyArray.java - Map equality
JavaApp/src/launcher/android/util/Objects.java
Other components
- Player
Connections 20
- Player → Launcher UI: opens launcher
README.md - Launcher UI → Game profiles: configures profile
- Game profiles → Minecraft accounts: selects account
- Game profiles → Version catalog: selects version
- Game profiles → Mod installers: chooses mod loader
README.md - Game profiles → Modpack installers: installs modpack
README.md - Launch preparation → Version catalog: loads version
JavaApp/src/launcher/net/kdt/pojavlaunch/Tools.java - Launch preparation → Class loading: uses class loader
JavaApp/src/launcher/net/kdt/pojavlaunch/Tools.java - Launch preparation → Array map: builds arguments
JavaApp/src/launcher/net/kdt/pojavlaunch/Tools.java - Launcher UI → Launch preparation: launches game
- Game surface → GLFW adaptation: hosts game window
- GLFW adaptation → On-screen controls: receives controls
README.md - GLFW adaptation → Device input: handles input
README.md - GLFW adaptation → Graphics interfaces: uses graphics APIs
README.md - Player → JIT support: enables JIT
README.md - Launch preparation → Platform detection: detects platform
- Array map → Map helpers: searches keys
JavaApp/src/launcher/android/util/ArrayMap.java - Array map → Empty arrays: initializes storage
JavaApp/src/launcher/android/util/ArrayMap.java - Array map → Map collections: exposes views
JavaApp/src/launcher/android/util/ArrayMap.java - Map collections → Map equality: compares entries
JavaApp/src/launcher/android/util/MapCollections.java