Class EnchantmentUtilities

java.lang.Object
net.headmonitor.MonitorLibSpigot.utilities.EnchantmentUtilities

public class EnchantmentUtilities extends Object
  • Constructor Details

    • EnchantmentUtilities

      public EnchantmentUtilities()
  • Method Details

    • enchantmentNameToEnchantment

      @Nullable public static org.bukkit.enchantments.Enchantment enchantmentNameToEnchantment(String enchantment)
      Converts a String to it's corresponding Enchantment.
      Parameters:
      enchantment - The String to convert.
      Returns:
      Returns the appropriate Enchantment.
    • materialEnchantments

      @Nullable public static List<org.bukkit.enchantments.Enchantment> materialEnchantments(org.bukkit.Material material)
      Returns a List of Enchantments that can be applied on a specific Material.
      Parameters:
      material - The Material to List Enchantments.
      Returns:
      Returns the List of Enchantments.
    • romanNumeralsToInt

      public static int romanNumeralsToInt(String romanNumeral)
      Converts Roman Numerals from 1 to 10 to their corresponding Integer.
      Parameters:
      romanNumeral - The String of Roman Numerals.
      Returns:
      Returns the converted Integer.