Util Storing Data in Item Lore

Discussion in 'Resources' started by _Filip, Feb 12, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    _Filip

    Here's an easy to use API for storing information in the Lore of items.
    It keeps tracks of specific ItemStacks with the item id. It has an updateItemStack method for updating the ItemStack if the one contained in the ItemLoreData instance becomes unlinked in cases such as after an item ability is used with mcmmo which puts a whole new ItemStack in the player's inventory.

    To get the ItemData for an ItemStack you must use the
    Code:
    public static ItemData registerItemDataFor(ItemStack itemStack) {
            return ItemLoreData.getData(itemStack);
        }
    method in the ItemDataStorageFactory class.

    Similar methods to SnakeYAML for putting & getting values.

    Reads and writes values in the following format: "key: value" but also supports reading from "key=value"
    Allows colours to be used as well.

    If you find any bugs just post in this thread

    https://github.com/FilipDev/LoreStorage
     
    ChipDev and Skionz like this.
  2. Offline

    ProStriker123

Thread Status:
Not open for further replies.

Share This Page