Mimic
Mimic provides access to abstraction APIs.
Threading
Methods that change a player or a block must be called on the thread owning it, which is the main thread on Paper and the region's thread on Folia. Changes via Levels, Classes and Resources, and Blocks methods taking a block, throw IllegalStateException on any other thread. Each API describes its own rules.
Properties
Vanilla and custom blocks from all plugins: identify placed blocks, set and break them, get items placing them. See Blocks for details and examples. To make your plugin's blocks available here, use registerBlockProvider.
Classes of players from all RPG plugins: read them, check class requirements, change classes. See Classes for details and examples. To make your plugin's classes available here, use registerClassProvider.
Vanilla and custom items from all plugins: create them by ID, identify stacks, list and validate IDs. See Items for details and examples. To make your plugin's items available here, use registerItemProvider.
Returns BukkitItemsRegistry combining items of all item providers. Unlike items, it searches an ID without a namespace over all providers.
Levels of players from all RPG plugins: read them, check level requirements, give or take experience. See Levels for details and examples. To make your plugin's levels available here, use registerLevelProvider.
Resources of players from all RPG plugins, like mana and stamina: read them, take costs, give them back. See Resources for details and examples. To make your plugin's resources available here, use registerResourceProvider.
Functions
Returns map containing all known BukkitClassSystem.Providers, where key is a provider ID.
Returns map containing all known BukkitItemsRegistry, where key is an item registry ID.
Returns map containing all known BukkitLevelSystem.Providers, where key is a provider ID.
Returns map containing all known BukkitPlayerInventory.Providers, where key is a provider ID.
Returns top priority BukkitClassSystem for the given player. It is a shorthand for getClassSystemProvider().getSystem(player).
Returns top priority BukkitClassSystem.Provider.
Returns top priority BukkitLevelSystem for the given player. It is a shorthand for getLevelSystemProvider().getSystem(player).
Returns top priority BukkitLevelSystem.Provider.
Returns top priority BukkitPlayerInventory for the given player. It is a shorthand for getPlayerInventoryProvider().getSystem(player).
Returns top priority BukkitPlayerInventory.Provider.
Registers the given provider of blocks with normal priority.
Registers the given provider of blocks.
Registers the given provider of classes with normal priority.
Registers the given provider of classes.
Registers the given provider for BukkitClassSystem with normal priority.
Registers the given provider for BukkitClassSystem.
Registers the given provider of items with normal priority.
Registers the given provider of items.
Registers the given registry with normal priority.
Registers the given registry.
Registers the given provider of level tracks with normal priority.
Registers the given provider of level tracks.
Registers the given provider for BukkitLevelSystem with normal priority.
Registers the given provider for BukkitLevelSystem.
Registers the given provider for BukkitPlayerInventory with normal priority.
Registers the given provider for BukkitPlayerInventory.
Registers the given provider of resources with normal priority.
Registers the given provider of resources.