Regime

enum Regime

Kotlin-identity regime, decided once from (our bundled kotlin C, the parent/game kotlin P).

Entries

Link copied to clipboard

P present and P >= C: delegate the kotlin.* runtime (see isKotlinRuntime) to the parent — ONE kotlin identity shared with the game's mods, falling back to our own copy for anything the parent lacks. The compiler then also runs on the parent's (>= our) stdlib, which is the kotlin-GUARANTEED backward direction (code compiled against C runs on >= C).

Link copied to clipboard

P kotlin.*), so it never runs on an older stdlib (which would be the un-guaranteed forward direction). Only the SNIPPET loader (snippetParentLoader) redirects kotlin.* to the parent's P, and snippets pin -api-version to P so they only use APIs P actually has.

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.