ForgePlatformHelper

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open val cacheDir: Path
Link copied to clipboard
open override val configPath: Path
Link copied to clipboard
open override val gameDir: Path
Link copied to clipboard
open override val isDedicatedServer: Boolean
Link copied to clipboard
open override val minecraftVersion: String
Link copied to clipboard
open override val modVersion: String
Link copied to clipboard
open override val platformId: String

Literal brand: FML publishes none this early.

Functions

Link copied to clipboard
open override fun isModLoaded(modId: String): Boolean
Link copied to clipboard
open fun isServerRunning(handle: Any?): Boolean
Link copied to clipboard
open override fun modCodePaths(): List<ModCode>
Link copied to clipboard
private fun modList(name: String, vararg args: String): Any?

ModList's name, called on what owns it: forge 64.x (26.1+) turned ModList into an all-static utility and dropped the get() singleton, <=1.21 is ModList.get().. Told apart by the method's own modifier rather than by trying the static shape and catching: that could not tell the wrong shape from a real failure in the right one, and on 64.x answered the second with get()'s NoSuchMethodException.

Link copied to clipboard
open fun pluginCodePaths(): List<Path>?
Link copied to clipboard
open fun runCommands(handle: Any, command: String): String
Link copied to clipboard
private fun secureJarRoot(modFile: Any): Path?

getSecureJar().getRootPath(), reflectively — forge 64.x (26.1+) dropped getSecureJar().