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.
// 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.