Uses of Class
me.sciguymjm.uberenchant.api.UberEnchantment
Package
Description
-
Uses of UberEnchantment in me.sciguymjm.uberenchant.api
Modifier and TypeMethodDescriptionstatic UberEnchantment[]
UberEnchantment.values()
Gets an array of all custom enchantments, including unregistered onesModifier 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)Modifier 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
Modifier 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
Modifier and TypeClassDescriptionclass
Abstract class for internal use.class