Mimic icon

Mimic -----

Vault of common RPG APIs



Mimic v0.8.0
PlayerInventory API
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.

Code (Java):
// 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 ( ) ;
API changes
  • Make implementations ID validation less strict.
    Since now, it may contain more special symbols: ._-
  • Make ServicesManager extensions inaccessible from Java
Plugin changes
  • Added command /mimic inventory info to get info about current player inventory provider
Fixed
  • Catch not only Exceptions from ItemsRegistry implementations but also Errors.
    ItemsRegistry will not crash other plugins.
Housekeeping
  • Versioning strategy changed.
    Now version always includes PATCH version according to SemVer.
  • Update Kotlin to 1.6.20
  • Update bStats to 3.0.0
  • Update ACF to 0.5.1-SNAPSHOT
  • Update Gradle to 7.4.2
  • Update Dokka to 1.6.20
  • Update binary-compatibility-validator to 0.9.0
  • Update gradle-download-task to 5.0.5
----------, Apr 18, 2022
Resource Information
Author:
----------
Total Downloads: 2,941
First Release: Aug 8, 2020
Last Update: Apr 18, 2022
Category: ---------------
All-Time Rating:
2 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings