Mimic

interface Mimic(source)

Mimic provides access to abstraction APIs.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Returns map containing all known BukkitClassSystem.Providers, where key is a provider ID.

Link copied to clipboard

Returns map containing all known BukkitItemsRegistry, where key is an item registry ID.

Link copied to clipboard

Returns map containing all known BukkitLevelSystem.Providers, where key is a provider ID.

Link copied to clipboard

Returns map containing all known BukkitPlayerInventory.Providers, where key is a provider ID.

Link copied to clipboard

Returns top priority BukkitClassSystem for the given player. It is a shorthand for getClassSystemProvider().getSystem(player).

Link copied to clipboard
Link copied to clipboard

Returns BukkitItemsRegistry implementation.

Link copied to clipboard

Returns top priority BukkitLevelSystem for the given player. It is a shorthand for getLevelSystemProvider().getSystem(player).

Link copied to clipboard
Link copied to clipboard
@ApiStatus.Experimental
open fun getPlayerInventory(player: Player): BukkitPlayerInventory

Returns top priority BukkitPlayerInventory for the given player. It is a shorthand for getPlayerInventoryProvider().getSystem(player).

Link copied to clipboard
Link copied to clipboard

Registers the given provider for BukkitClassSystem with normal priority.

Registers the given provider for BukkitClassSystem.

Link copied to clipboard
open fun registerItemsRegistry(registry: BukkitItemsRegistry, apiLevel: Int, plugin: Plugin): BukkitItemsRegistry?

Registers the given registry with normal priority.

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

Registers the given registry.

Link copied to clipboard

Registers the given provider for BukkitLevelSystem with normal priority.

Registers the given provider for BukkitLevelSystem.

Link copied to clipboard

Registers the given provider for BukkitPlayerInventory with normal priority.

Registers the given provider for BukkitPlayerInventory.