Bot releases are hidden (Show)
Published by osipxd over 2 years ago
v0.7.1 instead.
This version has issues breaking compatibility with Minecraft 1.13 - 1.16.5, please use
BE CAREFUL!
This update brings breaking changes forClassSystem
andLevelSystem
registration.
Please verify levels and classes integrations works properly after update to Mimic v0.7.
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.
MimicService
methods:
isEnabled()
returns true
by defaultgetId()
returns lowercase plugin name by defaultBukkitClassSystem.Provider
and BukkitLevelSystem.Provider
converted to interface instead of abstract classes.getId()
method.BukkitClassSystem.Provider
and BukkitLevelSystem.Provider
are functional interfaces since now.Full Changelog: https://github.com/EndlessCodeGroup/Mimic/compare/v0.6.3...v0.7
Published by osipxd almost 3 years ago
MimicItemsRegistry
from exceptions thrown from other items registries implementations.Published by osipxd about 3 years ago
MimicApiLevel.checkApiLevel
now works correctlyPublished by osipxd about 3 years ago
MimicApiLevel
class to check current running Mimic API version:
// Specify here the version required for APIs you use.
if (!MimicApiLevel.checkApiLevel(MimicApiLevel.VERSION_0_6)) {
println("At least Mimic 0.6 is required. Please download it from {link here}")
}
ItemsRegistry.getItem
. It may be used to customize item./mimic items info
:
Items Service: mimic
Known IDs amount: 1161
rpginventory: 4
quantumrpg: 55
mmoitems: 126
minecraft: 976
MinecraftItemsRegistry
.Published by osipxd over 3 years ago