Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-3881

BookMeta API methods for getting/setting book resolve status

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None

      The BookMeta interface allows you to manipulate almost all NBT data of a book. Only the 'resolved' boolean tag is missing. 
      I suggest adding 2 methods:

      • boolean isResolved()
      • void setResolved(boolean resolved)

      These methods would give developers easy access to make books more powerful, as the default value for this tag is set to true in the implementation (opposing to vanilla: false).

      I have also noticed that the resolved tag is not taken into consideration in places like

      • org.bukkit.craftbukkit.v1_12_R1.inventory.CraftMetaBook#serialize
      • org.bukkit.craftbukkit.v1_12_R1.inventory.CraftMetaBook#equalsCommon
      • org.bukkit.craftbukkit.v1_12_R1.inventory.CraftMetaBook#applyHash

            md_5 md_5
            Selebrator Selebrator
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: