registerItemsRegistry

Registers the given registry with normal priority.

Return

registered registry or null if it was not registered.

Parameters

registry

The BukkitItemsRegistry implementation

apiLevel

Minimal required API level for this item registry implementation: - if the required API level is higher than installed Mimic, provider will not be registered, - if the required API level is lower - will be enabled compatibility mode. Specify MimicApiLevel.CURRENT to use API level of Mimic dependency used at compile time.

plugin

The plugin implementing this item registry.


abstract fun registerItemsRegistry(registry: BukkitItemsRegistry, apiLevel: Int, plugin: Plugin, priority: ServicePriority): BukkitItemsRegistry?(source)

Registers the given registry.

Return

registered registry or null if it was not registered.

Parameters

registry

The BukkitItemsRegistry implementation

apiLevel

Minimal required API level for this item registry implementation: - if the required API level is higher than installed Mimic, provider will not be registered, - if the required API level is lower - will be enabled compatibility mode. Specify MimicApiLevel.CURRENT to use API level of Mimic dependency used at compile time.

plugin

The plugin implementing this item registry.

priority

Default priority. Service with higher priority will be used if user have not configured preferred service in config.