registerBlockRegistry

@ApiStatus.Experimental
open fun registerBlockRegistry(registry: BukkitBlockRegistry, apiLevel: Int, plugin: Plugin): BukkitBlockRegistry?(source)

Registers the given registry with normal priority.

Return

registered registry or null if it was not registered.

Since

0.9.0

Parameters

registry

The BukkitBlockRegistry implementation

apiLevel

Minimal required API level for this block 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 block registry.


@ApiStatus.Experimental
abstract fun registerBlockRegistry(registry: BukkitBlockRegistry, apiLevel: Int, plugin: Plugin, priority: ServicePriority): BukkitBlockRegistry?(source)

Registers the given registry.

Return

registered registry or null if it was not registered.

Since

0.9.0

Parameters

registry

The BukkitBlockRegistry implementation

apiLevel

Minimal required API level for this block 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 block registry.

priority

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