IPlatformHelper
Properties
This mod's config FILE, laid out where each loader's users look for one. Creates neither the file nor its parent directory.
Physical side, a launch-time constant. Opens the auth gate once at init on a dedicated server.
The running Minecraft version string (e.g. "1.18.2"), read from the loader — each loader knows it natively. Used to fetch version-matched remap mappings on a non-mojmap (Fabric intermediary / Forge SRG) runtime, where the processed runtime MC jar carries no version.json to read it from.
This mod's own version string, looked up FROM the loader by Constants.MOD_ID — the same value Gradle injected into each loader's metadata file (fabric.mod.json / mods.toml / neoforge.mods.toml) from gradle.properties. "unknown" if the loader can't resolve our own container.
Fork brand + loader build, e.g. "Purpur/git-Purpur-2062" — compared with ==, never parsed. Keys the mojmap symbol cache, so it must change whenever the runtime's net.minecraft bytes could (take the brand from the runtime wherever one is published) and must never change within one build.
Functions
The server lane's readiness probe, defaulted to the MinecraftServer every loader's heartbeat hands in. Here rather than inlined in Lanes so that class — loaded on every platform — stays free of the type, and a host that pumps the lane with something else can override.
Where every loaded mod's code lives (including jar-in-jar / nested modules), for the REPL compile classpath. Fabric via FabricLoader.getAllMods(); Forge and NeoForge via ModList ->IModFile.
Where a hybrid server's plugins live, so a script can import plugin APIs. A plugin host overrides this and asks the plugin manager.