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

Replace DyeColor magic wool/dye data with direct mapping to corresponding Material

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • This server is running CraftBukkit version git-Spigot-4520628-84676f3 (MC: 1.13-pre7) (Implementing API version 1.13-pre7-R0.1-SNAPSHOT)

      Since the different wool and dye types are now different materials in 1.13, it might make sense to remove the long-time deprecated magic wool/dye data values in DyeColor and instead provide a direct mapping to the corresponding wool/dye materials.
      Or keep both for types of mappings for the time being, until plugins had some time to update (since there wasn't an alternative to using these magic values previously: actually, plugins were able to use the Wool MaterialData class for this, though I assume many were/are still using the data values directly).

      Example use case: Mapping from sheep color to corresponding wool type. In this case minecraft seems to do this via a direct mapping as well.

            Unassigned Unassigned
            blablubbabc blablubbabc
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: