Util Legacy Minecraft ID "Support"

Discussion in 'Resources' started by ryanopily, Aug 14, 2020.

  1. Offline

    ryanopily

    Here we have a YAML mapping the old Minecraft IDs (97, 97:1, etc.) to the newer Spigot Material Enum Constants.

    Both values (IDs to Enum Constants) are String values in the YAML file.

    I made this while updating an old plugin, because the config used the old Minecraft IDs and I thought it would be convenient to be able to use both IDs and Material Enum Constants.

    This is something that you could stick in the jar as a resource and use JavaPlugin.getResource() to read from it, this way plugin users can't inadvertently break anything

    Here's the Gist: https://gist.github.com/ryanopily/c4aa83f87f32db796cb4041db1015e2a

    I know there's probably not many people who would use this, but I thought I'd share it just in case. It's not a perfect list I'm sure, but it works.
     
    Last edited: Aug 14, 2020

Share This Page