UEAPI

@Since(version = "2.2")
interface UEAPI

This is the central point of the API. It is used to, among other things, retrieve the registry, which is used to register and unregister enchantments, enchantment actions, etc. You should fetch an implementation of this interface from the Bukkit's service system.

Properties

Link copied to clipboard
@Since(version = "2.2")
abstract val enchanter: UEEnchanter

Gets the enchanter. Use it to enchant items, disenchant items, etc. This is the only way that you should fetch the UnderscoreEnchantsAPI enchanter.

Link copied to clipboard
@Since(version = "2.2")
abstract val loader: UELoader

Gets the loader. Use it to (un)load enchantments, packs, etc. This is the only way that you should fetch the UnderscoreEnchantsAPI loader.

Link copied to clipboard
@Since(version = "2.2")
abstract val playerManager: UEPlayerManager

Gets the player manager. Use it to toggle enchantments for players, manipulate players' locales, etc. This is the only way that you should fetch the UnderscoreEnchantsAPI player manager.

Link copied to clipboard
@Since(version = "2.2")
abstract val registry: UEAPIRegistry

Gets the data registry. Use it to register your placeholders, actions, conditions, etc. This is the only way that you should fetch the UnderscoreEnchantsAPI registry.

Link copied to clipboard
@Since(version = "2.2")
abstract val serverLocale: UELocale

Gets the primary server locale.

Functions

Link copied to clipboard
@Since(version = "2.2")
abstract fun getLocale(localeIdentifier: String): UELocale?

Gets the locale by its localeIdentifier. This only looks for loaded locales.