Platform Api
interface PlatformApi
API for abstraction of simple ModLoader requests
See the Wiki for more details and examples.
Author
fzzyhmstrs
Since
0.5.0
Functions
Link copied to clipboard
abstract fun <T : Any> buildRegistryTranslations(obj: T, prefix: String, lang: String, logWarnings: Boolean, builder: BiConsumer<String, String>)
Applies a set of translations for the provided registry instance to the provided builder. Uses Translatable.Name, Translatable.Desc, and Translatable.Prefix annotations to power the generation. TomlComment and Comment can be used to provide en_us description lang.
Link copied to clipboard
Link copied to clipboard
Creates a RegistryBuilder for creating registries in a platform-agnostic way, along with providing other registry utilities.
Link copied to clipboard
Returns whether another mod is loaded based on their registered mod_id.
Link copied to clipboard
Tests the version of the provided mod (or minecraft)