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 -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomEnchantmentgetEnchantment(String name) static Collection<CustomEnchantment> static booleanisRegistered(String name) voidvoidonEnable()voidregister(CustomEnchantment... enchantments) Registers enchantments with the APIMethods 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, toStringMethods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCode
-
Constructor Details
-
FabledEnchants
public FabledEnchants()
-
-
Method Details
-
onEnable
public void onEnable()- Specified by:
onEnablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onEnablein classorg.bukkit.plugin.java.JavaPlugin
-
onDisable
public void onDisable()- Specified by:
onDisablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onDisablein classorg.bukkit.plugin.java.JavaPlugin
-
isRegistered
- Parameters:
name- enchantment name- Returns:
- true if the enchantment is registered successfully, false otherwise
-
getEnchantment
- Parameters:
name- name of the enchantment (not case-sensitive)- Returns:
- enchantment with the provided name
-
getRegisteredEnchantments
- Returns:
- collection of all registered enchantments including vanilla enchantments
-
register
Registers enchantments with the API- Specified by:
registerin interfaceEnchantmentRegistry- Parameters:
enchantments- enchantments to register
-