Add a way to get logical Material order with Bukkit

XMLWordPrintable

    • Type: New Feature
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: None
    • None
    • 1.16.1
    • Yes

      The search section of the creative inventory (for example) lists all the items in a convenient, logical order. Currently in the Bukkit API there isn't a way to sort materials in an order that's convenient to a player.

      Before 1.13, the Material enum was in the same (or similar?) order as the creative inventory, but in this commit for 1.13-pre7, the order was changed to alphabetical: f8b2086d60942eb2cd7ac25a2a1408cb790c222c

      I can make a PR for this change and relevant tests, I just don't know the best way to go about it (re-order the materials, add some kind of ordinal function, etc.)

       

            Assignee:
            Unassigned
            Reporter:
            Ben Woodworth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: