Class EnchantmentUtils

java.lang.Object
ch.njol.skript.bukkitutil.EnchantmentUtils

public class EnchantmentUtils extends Object
Maps enchantments to their keys.
  • Constructor Details

    • EnchantmentUtils

      public EnchantmentUtils()
  • Method Details

    • getKey

      public static String getKey(org.bukkit.enchantments.Enchantment enchantment)
    • getByKey

      @Nullable public static @Nullable org.bukkit.enchantments.Enchantment getByKey(String key)
    • parseEnchantment

      @Nullable public static @Nullable org.bukkit.enchantments.Enchantment parseEnchantment(String s)
    • getNames

      public static Collection<String> getNames()
    • toString

      public static String toString(org.bukkit.enchantments.Enchantment enchantment)
    • toString

      public static String toString(org.bukkit.enchantments.Enchantment enchantment, int flags)
    • createClassInfo

      public static ClassInfo<org.bukkit.enchantments.Enchantment> createClassInfo()