Universal Material Names | For Developers 7

Makes 1.8.8-1.14.4 material names work on all supported servers.

  1. RandomHashTags
    Tested Minecraft Versions:
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    • 1.14
    Source Code:
    https://gitlab.com/RandomHashTags/umaterial
    Contributors:
    RandomHashTags
    [​IMG]
    The download link downloads the latest build of the UMaterial.java

    Versions of Minecraft this supports
    • Fully tested on
      • 1.8.8
      • 1.9.4
      • 1.10.2
      • 1.11.2
      • 1.12.2
      • 1.13.2
      • 1.14.4
        • Make sure you put api-version: 1.13 in your plugin.yml if using 1.13+!
    Features
    • Allows 1.8.8-1.14.4 material names to work on any 1.8.8-1.14.4 server
      • Backwards and forwards compatibility (as long as the material exists)
    • Regular Potions, Splash Potions, Lingering Potions
    • Tipped Arrows
    • Enchantment Books
    • Colored Leather Armor
    Usage
    • UMaterial.valueOf(<umaterial enum name>)
    • UMaterial.match(<UMaterial enum name>)
    • UMaterial.match(ItemStack)
    • UMaterial.<enum>.getItemStack()
    • UMaterial.<enum>.getMaterial()
    • UMaterial.<enum>.getData()
    • Deprecated
      • UMaterial.valueOf(materialName, data)
      • UMaterial.match(materialName, data)
    • You could also use these functions
    • getEnchantmentBook
      • returns an Enchanted Book with 1 or more enchants (2 methods)
    • getColoredLeather(leatherMaterial, amount, red, green, blue)
      • leather armor piece with a custom color
    • matchEnchantedBook(ItemStack enchantedBook)
      • only works with enchanted books with 1 enchant stored
    • matchSpawnEgg(ItemStack egg)
      • matches a spawn egg to its UMaterial
    • matchPotion(ItemStack potion, PotionBase type)
      • matches a potion to its UMaterial
    If you want it to support Item IDs or other things, let me know!

    Feel free to use it in any plugin (it's licensed btw). <3
    Trophonix, Toldi and GMatrix like this.

Recent Updates

  1. Fixes
  2. Optimized memory usage
  3. Updated for 1.14.2

Recent Reviews

  1. Franchiccosd
    Franchiccosd
    5/5,
    Version: 7
    amazing! please add also 1.14.4 support!
    ------------------------------------------------
  2. Puyodead1
    Puyodead1
    5/5,
    Version: 7
    Really nice resource, makes things way easier. It’s really easy to use this also. :)
    1. RandomHashTags
  3. Trophonix
    Trophonix
    5/5,
    Version: 7
    Ohh I noticed my black glass was white instead but hadn't gotten around to looking at what was causing it. Thanks for the update!
    1. RandomHashTags
  4. RobotPlays
    RobotPlays
    5/5,
    Version: 6
    Perfect api please add id Support.
    And thanks for publish this api.
    ...............
    1. RandomHashTags
  5. CleusGamer201
    CleusGamer201
    5/5,
    Version: 6
    Excellent, thanks for your time to update this very useful material class!

    10/10 :)
    1. RandomHashTags
  6. eickmung
    eickmung
    5/5,
    Version: 5
    The most use the resource! your good developer. you are the best. thanks for much.
    1. RandomHashTags
  7. Trophonix
    Trophonix
    5/5,
    Version: 5
    A very useful resource! I'm using it in a couple of my upcoming plugins and am very pleased with the resource and the developer.
    1. RandomHashTags
  8. DrOreo002
    DrOreo002
    5/5,
    Version: 4
    Very cool!, thanks a bunch! :DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD

    10/10 ~ DrOreo002
    1. RandomHashTags
  9. Splodgebox
    Splodgebox
    5/5,
    Version: 3
    Very helpful! Thank you soo much for this resource. Saves me a load of time when making my plugin
    1. RandomHashTags
  10. Gober
    Gober
    5/5,
    Version: 3
    Works perfectly <3

    ONE LOVE
    1. RandomHashTags