public class EnchantmentUtils
extends Object
Maps enchantments to their ids in Minecraft 1.12.
-
Constructor Summary
Constructors
-
Method Summary
static @Nullable org.bukkit.enchantments.Enchantment
getKey(org.bukkit.enchantments.Enchantment ench)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
EnchantmentUtils
public EnchantmentUtils()
-
Method Details
-
getKey
public static String getKey
(org.bukkit.enchantments.Enchantment ench)
-
getByKey
public static @Nullable org.bukkit.enchantments.Enchantment getByKey
(String key)