Mimic v0.7
This version has issues breaking compatibility with Minecraft 1.13 - 1.16.5, please use v0.7.1 instead.
BE CAREFUL!
This update brings breaking changes forClassSystem
andLevelSystem
registration.
Please verify levels and classes integrations works properly after update to Mimic v0.7.
New implementations registration API
Registration via ServiceManager
is deprecated because it was error-prone and not intuitive.
Since now, you should use class Mimic
to register or get APIs implementations.
Mimic mimic = Mimic.getInstance();
// Register ItemsRegistry implementation
mimic.registerItemsRegistry(new MyItemsRegistry(), MimicApiLevel.CURRENT, plugin);
// Get items registry imlpementation
BukkitItemsRegistry registry = mimic.getItemsRegistry();
New mechanism allows maintaining better backward compatibility for APIs implementations.
It also allows users to select preferred APIs implementation via config.
API Changes
- Added default implementations for
MimicService
methods:isEnabled()
returnstrue
by defaultgetId()
returns lowercase plugin name by default
- Breaking change! ID should contain only lowercase Latin letters and digits (a-z, 0-9).
- Breaking change!
BukkitClassSystem.Provider
andBukkitLevelSystem.Provider
converted to interface instead of abstract classes.
If you want to use ID different from plugin name, you should overridegetId()
method. BukkitClassSystem.Provider
andBukkitLevelSystem.Provider
are functional interfaces since now.
Plugin changes
- Added config file allowing to specify preferred APIs implementations.
- Fixed errors in case when commands used from console.
Full Changelog: v0.6.3...v0.7