Skip to content

Archie

object Archie

The root singleton for the Archie library mod.

Provides the mod ID, the Architectury Mod descriptor, a shared Logger, and the get(path) operator for constructing ResourceLocations in the archie namespace. Also hosts Archie's own ConfigSpec as a nested Config object for testing purposes.

Initialization

Call init once during common mod initialization and initClient once on the client side:

// In your mod entrypoint:
Archie.init()       // common
Archie.initClient() // client-only

Types

Config

object Config : ConfigSpec

Properties

LOGGER

@JvmField
val LOGGER: Logger

MOD

@JvmField
val MOD: Mod

MOD_ID

const val MOD_ID: String

Functions

get

@JvmStatic
operator fun get(loc: String): ResourceLocation

init

initClient

initCommon