Hello everyone,
This update adds an API which is useful for developers to easily manage Shulker Boxes and their contents!
You simply use the API by using
ShulkersAPI.#method();
These are currently the list of methods available as of version 2.4.2:
Code (Text):
#isShulkerBoxItemStack() - Returns true if the specified ItemStack is a Shulker Box
#isShulkerBox() - Returns true if the specified Block is a Shulker Box
#newShulkerBox() - Creates a new Shulker Box ItemStack
#getShulkerBoxItemStackColor() - Returns ShulkerType enum color of the specified Shulker Box ItemStack
#getShulkerBoxColor() - Returns ShulkerType enum color of the specified Shulker Box Block
#setShulkerBoxColor() - Sets placed Shulker Box's color to specified ShulkerType enum color
#setShulkerBoxItemColor() - Sets Shulker Box ItemStack's color to specified ShulkerType enum color
#setDisplayName() - Sets Shulker Box ItemStack's display name to specified String
#clearShulkerBoxInventory() - Removes all contents from specified placed Shulker Box
#clearShulkerBoxItemInventory() - Removes all contents from specified Shulker Box ItemStack
#addItem() - Adds ItemStack to specified Shulker Box ItemStack
#setItem() - Sets ItemStack to specified Shulker Box ItemStack at specified slot
#getContents() - Returns ItemStack[] array of specified Shulker Box ItemStack's contents
#isShulkerBoxItemFull() - Returns true if specified Shulker Box ItemStack's inventory is full
This API is useful, if for example you want Shulker Box ItemStacks to auto-collect items into their inventory, you can easily do so with this API.