Uses of Class
org.bukkit.enchantments.Enchantment
Packages that use Enchantment
Package
Description
The root package of the Bukkit API, contains generalized API classes.
Classes relating to the specialized enhancements to
item stacks, as part of the meta data.Events triggered from an enchantment table.Classes involved in manipulating player inventories and item interactions.
The interfaces used when manipulating extra data can can be stored inside
item stacks.-
Uses of Enchantment in org.bukkit
Fields in org.bukkit with type parameters of type EnchantmentModifier and TypeFieldDescriptionstatic final Registry<Enchantment>Registry.ENCHANTMENTServer enchantments. -
Uses of Enchantment in org.bukkit.enchantments
Subclasses of Enchantment in org.bukkit.enchantmentsFields in org.bukkit.enchantments declared as EnchantmentModifier and TypeFieldDescriptionstatic final EnchantmentEnchantment.ARROW_DAMAGEProvides extra damage when shooting arrows from bowsstatic final EnchantmentEnchantment.ARROW_FIRESets entities on fire when hit by arrows shot from a bowstatic final EnchantmentEnchantment.ARROW_INFINITEProvides infinite arrows when shooting a bowstatic final EnchantmentEnchantment.ARROW_KNOCKBACKProvides a knockback when an entity is hit by an arrow from a bowstatic final EnchantmentEnchantment.BINDING_CURSEItem cannot be removedstatic final EnchantmentEnchantment.CHANNELINGStrikes lightning when a mob is hit with a trident if conditions are stormystatic final EnchantmentEnchantment.DAMAGE_ALLIncreases damage against all targetsstatic final EnchantmentEnchantment.DAMAGE_ARTHROPODSIncreases damage against arthropod targetsstatic final EnchantmentEnchantment.DAMAGE_UNDEADIncreases damage against undead targetsstatic final EnchantmentEnchantment.DEPTH_STRIDERIncreases walking speed while in waterstatic final EnchantmentEnchantment.DIG_SPEEDIncreases the rate at which you mine/digstatic final EnchantmentEnchantment.DURABILITYDecreases the rate at which a tool looses durabilitystatic final EnchantmentEnchantment.FIRE_ASPECTWhen attacking a target, has a chance to set them on firestatic final EnchantmentEnchantment.FROST_WALKERFreezes any still water adjacent to ice / frost which player is walking onstatic final EnchantmentEnchantment.IMPALINGDeals more damage to mobs that live in the oceanstatic final EnchantmentEnchantment.KNOCKBACKAll damage to other targets will knock them back when hitstatic final EnchantmentEnchantment.LOOT_BONUS_BLOCKSProvides a chance of gaining extra loot when destroying blocksstatic final EnchantmentEnchantment.LOOT_BONUS_MOBSProvides a chance of gaining extra loot when killing monstersstatic final EnchantmentEnchantment.LOYALTYCauses a thrown trident to return to the player who threw itstatic final EnchantmentEnchantment.LUCKDecreases odds of catching worthless junkstatic final EnchantmentEnchantment.LUREIncreases rate of fish biting your hookstatic final EnchantmentEnchantment.MENDINGAllows mending the item using experience orbsstatic final EnchantmentEnchantment.MULTISHOTShoot multiple arrows from crossbowsstatic final EnchantmentEnchantment.OXYGENDecreases the rate of air loss whilst underwaterstatic final EnchantmentEnchantment.PIERCINGCrossbow projectiles pierce entitiesstatic final EnchantmentEnchantment.PROTECTION_ENVIRONMENTALProvides protection against environmental damagestatic final EnchantmentEnchantment.PROTECTION_EXPLOSIONSProvides protection against explosive damagestatic final EnchantmentEnchantment.PROTECTION_FALLProvides protection against fall damagestatic final EnchantmentEnchantment.PROTECTION_FIREProvides protection against fire damagestatic final EnchantmentEnchantment.PROTECTION_PROJECTILEProvides protection against projectile damagestatic final EnchantmentEnchantment.QUICK_CHARGECharges crossbows quicklystatic final EnchantmentEnchantment.RIPTIDEWhen it is rainy, launches the player in the direction their trident is thrownstatic final EnchantmentEnchantment.SILK_TOUCHAllows blocks to drop themselves instead of fragments (for example, stone instead of cobblestone)static final EnchantmentEnchantment.SOUL_SPEEDWalk quicker on soul blocksstatic final EnchantmentEnchantment.SWEEPING_EDGEIncreases damage against targets when using a sweep attackstatic final EnchantmentEnchantment.SWIFT_SNEAKWalk quicker while sneakingstatic final EnchantmentEnchantment.THORNSDamages the attackerstatic final EnchantmentEnchantment.VANISHING_CURSEItem disappears instead of droppingstatic final EnchantmentEnchantment.WATER_WORKERIncreases the speed at which a player may mine underwaterMethods in org.bukkit.enchantments that return EnchantmentModifier and TypeMethodDescriptionstatic EnchantmentEnchantment.getByKey(NamespacedKey key) Gets the Enchantment at the specified keystatic EnchantmentDeprecated.EnchantmentOffer.getEnchantment()Get the type of the enchantment.EnchantmentWrapper.getEnchantment()Gets the enchantment bound to this wrapperstatic Enchantment[]Enchantment.values()Gets an array of all the registeredEnchantmentsMethods in org.bukkit.enchantments with parameters of type EnchantmentModifier and TypeMethodDescriptionabstract booleanEnchantment.conflictsWith(Enchantment other) Check if this enchantment conflicts with another enchantment.booleanEnchantmentWrapper.conflictsWith(Enchantment other) static voidEnchantment.registerEnchantment(Enchantment enchantment) Registers an enchantment with the given ID and object.voidEnchantmentOffer.setEnchantment(Enchantment enchantment) Sets the type of the enchantment.Constructors in org.bukkit.enchantments with parameters of type EnchantmentModifierConstructorDescriptionEnchantmentOffer(Enchantment enchantment, int enchantmentLevel, int cost) -
Uses of Enchantment in org.bukkit.event.enchantment
Methods in org.bukkit.event.enchantment that return EnchantmentModifier and TypeMethodDescriptionEnchantItemEvent.getEnchantmentHint()Get theEnchantmentthat was displayed as a hint to the player on the selected enchantment offer.Methods in org.bukkit.event.enchantment that return types with arguments of type EnchantmentModifier and TypeMethodDescriptionEnchantItemEvent.getEnchantsToAdd()Get map of enchantment (levels, keyed by type) to be added to item (modify map returned to change values).Constructors in org.bukkit.event.enchantment with parameters of type EnchantmentModifierConstructorDescriptionEnchantItemEvent(Player enchanter, InventoryView view, Block table, ItemStack item, int level, Map<Enchantment, Integer> enchants, Enchantment enchantmentHint, int levelHint, int i) Constructor parameters in org.bukkit.event.enchantment with type arguments of type EnchantmentModifierConstructorDescriptionEnchantItemEvent(Player enchanter, InventoryView view, Block table, ItemStack item, int level, Map<Enchantment, Integer> enchants, Enchantment enchantmentHint, int levelHint, int i) -
Uses of Enchantment in org.bukkit.inventory
Methods in org.bukkit.inventory that return types with arguments of type EnchantmentModifier and TypeMethodDescriptionItemStack.getEnchantments()Gets a map containing all enchantments and their levels on this item.Methods in org.bukkit.inventory with parameters of type EnchantmentModifier and TypeMethodDescriptionvoidItemStack.addEnchantment(Enchantment ench, int level) Adds the specifiedEnchantmentto this item stack.voidItemStack.addUnsafeEnchantment(Enchantment ench, int level) Adds the specifiedEnchantmentto this item stack.booleanItemStack.containsEnchantment(Enchantment ench) Checks if this ItemStack contains the givenEnchantmentintItemStack.getEnchantmentLevel(Enchantment ench) Gets the level of the specified enchantment on this item stackintItemStack.removeEnchantment(Enchantment ench) Removes the specifiedEnchantmentif it exists on this ItemStackMethod parameters in org.bukkit.inventory with type arguments of type EnchantmentModifier and TypeMethodDescriptionvoidItemStack.addEnchantments(Map<Enchantment, Integer> enchantments) Adds the specified enchantments to this item stack.voidItemStack.addUnsafeEnchantments(Map<Enchantment, Integer> enchantments) Adds the specified enchantments to this item stack in an unsafe manner. -
Uses of Enchantment in org.bukkit.inventory.meta
Methods in org.bukkit.inventory.meta that return types with arguments of type EnchantmentModifier and TypeMethodDescriptionItemMeta.getEnchants()Returns a copy the enchantments in this ItemMeta.EnchantmentStorageMeta.getStoredEnchants()Gets a copy the stored enchantments in this ItemMeta.Methods in org.bukkit.inventory.meta with parameters of type EnchantmentModifier and TypeMethodDescriptionbooleanItemMeta.addEnchant(Enchantment ench, int level, boolean ignoreLevelRestriction) Adds the specified enchantment to this item meta.booleanEnchantmentStorageMeta.addStoredEnchant(Enchantment ench, int level, boolean ignoreLevelRestriction) Stores the specified enchantment in this item meta.intItemMeta.getEnchantLevel(Enchantment ench) Checks for the level of the specified enchantment.intEnchantmentStorageMeta.getStoredEnchantLevel(Enchantment ench) Checks for the level of the stored enchantment.booleanItemMeta.hasConflictingEnchant(Enchantment ench) Checks if the specified enchantment conflicts with any enchantments in this ItemMeta.booleanEnchantmentStorageMeta.hasConflictingStoredEnchant(Enchantment ench) Checks if the specified enchantment conflicts with any enchantments in this ItemMeta.booleanItemMeta.hasEnchant(Enchantment ench) Checks for existence of the specified enchantment.booleanEnchantmentStorageMeta.hasStoredEnchant(Enchantment ench) Checks for storage of the specified enchantment.booleanItemMeta.removeEnchant(Enchantment ench) Removes the specified enchantment from this item meta.booleanEnchantmentStorageMeta.removeStoredEnchant(Enchantment ench) Remove the specified stored enchantment from this item meta.
getByKey(org.bukkit.NamespacedKey).