Closed GabrielAtlas closed 3 years ago
Sounds good, yeah. I use this method myself sometimes. I guess I'll just take Spigot's 1.13 isItem() method and remove the 1.13 materials.
Sounds good, yeah. I use this method myself sometimes. I guess I'll just take Spigot's 1.13 isItem() method and remove the 1.13 materials.
Yeah, works too 😁
Added in v7.9.1.1
Description Add a method that when use
XMaterial.MATERIAL_ID.isItem()
checks if item can be displayed in menu, versions like 1.8 don't have the [Material#isItem() method](https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html#isItem()) and need to be checked manuallyThis code can be help you to return if material can be displayed in 1.8 in GUI menus:
Congrats, Atlas.