Skip to content

Added method "get()", added method setDisplay

Compare
Choose a tag to compare
@Yovach Yovach released this 01 Jan 22:17
· 15 commits to master since this release
10403b2

Method get() :

  • allows to retrieve the object corresponding to the class :
    • MaterialLang.DIAMOND.get() = Material.DIAMOND
    • EnchantmentLang.PROTECTION_FIRE.get() -> Enchantment.PROTECTION_FIRE

Method display (requires NBTAPI):

  • allows you to modify the "display" properties of an ItemStack.

NOTE :

If you want to use "display" method, please take a look to :