Bot releases are visible (Hide)
This version introduces new experimental PlayerInventory API.
For now, it can be used only to get player's inventory content and equipped items.
It can be useful for integration with plugins providing custom player inventory.
// Get player's inventory
Mimic mimic = Mimic.getInstance();
BukkitPlayerInventory inventory = mimic.getPlayerInventory(player);
// Get items equipped on the player
List<ItemStack> equippedItems = inventory.getEquippedItems();
// Get not equipped items stored in the inventory
List<ItemStack> storedItems = inventory.getStoredItems();
// Get both equpped and not equipped items
List<ItemStack> allItems = inventory.getItems();
This API is experimental, so it can be changed further.
I'll do my best to save backward compatibility but in some cases it is not possible.
It also means I'm open for ideas how to improve this API to make it more useful.
Please, write me in Discord or file an issue if you have any ideas.
._-
ServicesManager
extensions inaccessible from Java/mimic inventory info
to get info about current player inventory providerItemsRegistry
implementations but also Errors.ItemsRegistry
will not crash other plugins.PATCH
version according to SemVer.Full Changelog: https://github.com/EndlessCodeGroup/Mimic/compare/v0.7.1...v0.8.0
Published by github-actions[bot] over 2 years ago
FileNotFoundException
on config initializationFull Changelog: https://github.com/EndlessCodeGroup/Mimic/compare/v0.7...v0.7.1
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 github-actions[bot] almost 3 years ago
Full Changelog: https://github.com/EndlessCodeGroup/Mimic/compare/v0.6.2...v0.6.3
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
Published by github-actions[bot] about 4 years ago
Simplify ClassSystem
API. Remove required
word from function names.
Published by github-actions[bot] about 4 years ago
/mimic info
level
, classes
and items
packages for several APIsru.endlesscode.mimic.bukkit
-> ru.endlesscode.mimic
Provider
now is class and not a static fieldPublished by github-actions[bot] about 4 years ago
First public release. It includes the following APIs: