Hi folks,
This update makes InvSee++ compatible with CraftBukkit 1.21.6. This release has a minor version bump because of the addition of animal armour and saddle slots to player inventories (yes, really, I am not kidding). To support these inventory slots, the slots with numbers 41 and 42 will be used to represent the respective items. The cursor slot has been moved to number 43. The default inventory mirror has been updated to reflect this change.
For developers making use of the API:
- The PlayerInventorySlot enum has been expanded to include the new BODY and SADDLE slots.
- The array returned by MainSpectatorInventory#getOffHandContents() now will include the 'body' and 'saddle' items when running on CraftBukkit 1.21.6.
- The method MainSpectatorInventory#setOffHandContents(ItemStack[]) will now always require an itemstack array of length 3, when running on CraftBukkit 1.21.6.
Cheers!
This release adds support for the following Minecraft versions:
- 1.21
- 1.20.1
Support for the following Minecraft versions has been dropped:
- 1.20.5
- 1.15.2
Other breaking changes: SpectatorInventoryView was changed from a class to an interface in order to support Bukkit's source-incompatible change (they converted InventoryView from a class to an interface). API consumers that made use of the SpectatorInventoryView, EnderSpectatorInventoryView or MainSpectatorInventoryView classes will have to recompile their code against this new version.
Additions:
- Support for Minecraft 1.20.5
- Support for Minecraft 1.20.6
Deletions:
- Support for Minecraft 1.20.2
Other breaking changes:
- InvSee++_Give's command format was changed to accomodate the removal of NBT tags. The syntax of the /invgive and /endergive commands is now almost exactly like Vanilla's /give command. The exception is that entity selectors do not work with /ingvive and /endergive. Note that the new format is only required for Minecraft 1.20.5 and up. InvSee++ still uses the old format on Minecraft 1.20.4 and below.
- InvSee++_Give now properly respects the max_stack_size component of item stacks - it is no longer possible to give stacks larger than the maximum stack size.