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

Extra Method to HideFlags "hasItemFlags"

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • None
    • None
    • NB

      Hi

      While use the HideFlags API I feel their needs to be a method which Enchants and Lore have. Currently there is no single method to check if there are "any" ItemFlags, the only why to check is to use getItemFlags which will return an empty set if there is no ItemFlags. Sure you will agree this is not they efficient but currently its the only way to check without specifying a exact flag to check for. Something similar to the snippet below would be ideal. Thanks for your consideration.

      hasItemFlags
      /*
      * Checks for the existence of any ItemFlags.
      *
      * @return true if an ItemFlag exists on this meta
      */
      boolean hasItemFlags()
      
      

            Thinkofdeath Thinkofname
            Relicum Chris Lutte
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: