Class FabledEnchants

java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
studio.magemonkey.fabled.enchants.FabledEnchants
All Implemented Interfaces:
org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter, org.bukkit.command.TabExecutor, org.bukkit.plugin.Plugin, EnchantmentRegistry

public class FabledEnchants extends org.bukkit.plugin.java.JavaPlugin implements EnchantmentRegistry
FabledEnchants © 2026 VoidEdge studio.magemonkey.fabled.enchants.FabledEnchants
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    static boolean
     
    void
     
    void
     
    void
    register(CustomEnchantment... enchantments)
    Registers enchantments with the API

    Methods inherited from class org.bukkit.plugin.java.JavaPlugin

    getClassLoader, getCommand, getConfig, getDataFolder, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, isEnabled, isNaggable, onCommand, onLoad, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toString

    Methods inherited from class org.bukkit.plugin.PluginBase

    equals, getName, hashCode

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • FabledEnchants

      public FabledEnchants()
  • Method Details

    • onEnable

      public void onEnable()
      Specified by:
      onEnable in interface org.bukkit.plugin.Plugin
      Overrides:
      onEnable in class org.bukkit.plugin.java.JavaPlugin
    • onDisable

      public void onDisable()
      Specified by:
      onDisable in interface org.bukkit.plugin.Plugin
      Overrides:
      onDisable in class org.bukkit.plugin.java.JavaPlugin
    • isRegistered

      public static boolean isRegistered(String name)
      Parameters:
      name - enchantment name
      Returns:
      true if the enchantment is registered successfully, false otherwise
    • getEnchantment

      public static CustomEnchantment getEnchantment(String name)
      Parameters:
      name - name of the enchantment (not case-sensitive)
      Returns:
      enchantment with the provided name
    • getRegisteredEnchantments

      public static Collection<CustomEnchantment> getRegisteredEnchantments()
      Returns:
      collection of all registered enchantments including vanilla enchantments
    • register

      public void register(CustomEnchantment... enchantments)
      Registers enchantments with the API
      Specified by:
      register in interface EnchantmentRegistry
      Parameters:
      enchantments - enchantments to register