Constants

object Constants

Properties

Link copied to clipboard

The mod's cache directory, relative to the game dir. The one place this name is written — every reader goes through Services.PLATFORM.cacheDir.

Link copied to clipboard

The loader our own code lives on — which can always see the game, being it or a child of it (on a plugin host this is the plugin loader, whose parent is the server's). Every mcp thread sets its Thread.contextClassLoader to it: a thread inherits that from whoever created it, and the FML worker our init runs on carries the app loader, which sees neither MC nor any mod library — so a library resolving through the context loader fails on our threads and nowhere else. Read off this class, in the root package, so the masking loader delegates and both sides answer with one value.

Link copied to clipboard
val LOG: Logger
Link copied to clipboard

The loader that DEFINES the game's classes — not GAME_LOADER, which on a plugin host only delegates to it. The symbol reference is deliberate: reobf remaps it per platform, so it always names the running MC.

Link copied to clipboard
const val MOD_ID: String
Link copied to clipboard
const val MOD_NAME: String