Uses of Class
me.sciguymjm.uberenchant.api.UberEnchantment
Packages that use UberEnchantment
Package
Description
-
Uses of UberEnchantment in me.sciguymjm.uberenchant.api
Methods in me.sciguymjm.uberenchant.api that return UberEnchantmentModifier and TypeMethodDescriptionstatic UberEnchantment[]
UberEnchantment.values()
Gets an array of all custom enchantments, including unregistered onesMethods in me.sciguymjm.uberenchant.api that return types with arguments of type UberEnchantmentModifier and TypeMethodDescriptionstatic Map<UberEnchantment,
Integer> UberEnchantment.getEnchantments
(org.bukkit.inventory.ItemStack item) Gets a map containing all custom enchantments and their levels on this item.static List<UberEnchantment>
UberEnchantment.getRegisteredEnchantments()
Gets all registered custom enchantments.
(Includes any plugins running on the server that implement UberEnchants API)static List<UberEnchantment>
UberEnchantment.getRegisteredEnchantments
(String plugin) Gets all custom enchantments registered to the specified plugin name.static List<UberEnchantment>
UberEnchantment.getRegisteredEnchantments
(org.bukkit.plugin.Plugin plugin) Gets all custom enchantments regsitered to the specified plugin.static Map<UberEnchantment,
Integer> UberEnchantment.getStoredEnchantments
(org.bukkit.inventory.ItemStack item) Gets a map containing the stored enchantments in this item.
(Usually reserved for an enchanted book)Methods in me.sciguymjm.uberenchant.api with parameters of type UberEnchantmentModifier and TypeMethodDescriptionstatic boolean
UberEnchantment.containsEnchantment
(org.bukkit.inventory.ItemStack item, UberEnchantment enchantment) Checks if the specified item contains the specified enchantment.static int
UberEnchantment.getLevel
(org.bukkit.inventory.ItemStack item, UberEnchantment enchantment) Gets the level of the specified enchantment on the specified item.static boolean
UberEnchantment.isRegistered
(UberEnchantment enchantment) Checks if the specified enchantment is registered.static boolean
UberEnchantment.register
(UberEnchantment enchantment) Registers the specified custom enchantment. -
Uses of UberEnchantment in me.sciguymjm.uberenchant.api.utils
Methods in me.sciguymjm.uberenchant.api.utils with parameters of type UberEnchantmentModifier and TypeMethodDescriptionstatic void
UberUtils.addEnchantment
(UberEnchantment enchant, org.bukkit.inventory.ItemStack item, int level) Adds the specified UberEnchantment to the item with specified level.static String
UberUtils.displayName
(UberEnchantment enchantment, int level) Constructs the custom enchantment lore.
(Formatted as"<name> <level>"
ie "Sharpness V")static org.bukkit.inventory.ItemStack
UberUtils.extractEnchantment
(UberEnchantment enchantment, org.bukkit.inventory.ItemStack item) Extracts the specified UberEnchantment from the item and puts it as a stored enchantment on an enchanted book.static void
UberConfiguration.registerUberRecord
(UberEnchantment enchantment, double cost, double multiplier, double removal, double extract, boolean anything, List<String> aliases, Map<Integer, Double> level_cost) Convenient method to both add an UberRecord and register a specified UberEnchantment.static int
UberUtils.removeEnchantment
(UberEnchantment enchantment, org.bukkit.inventory.ItemStack item) Removes the specified UberEnchantment from the item, returning the level of the enchantment or 0. -
Uses of UberEnchantment in me.sciguymjm.uberenchant.enchantments.abstraction
Subclasses of UberEnchantment in me.sciguymjm.uberenchant.enchantments.abstractionModifier and TypeClassDescriptionclass
Abstract class for internal use.class