Uses of Class
org.bukkit.enchantments.Enchantment
-
Packages that use Enchantment Package Description org.bukkit More generalized classes in the API.org.bukkit.enchantments Classes relating to the specialized enhancements toitem stacks, as part of themeta data.org.bukkit.event.enchantment Eventstriggered from anenchantment table.org.bukkit.inventory Classes involved in manipulating player inventories and item interactions.org.bukkit.inventory.meta The interfaces used when manipulating extra data can can be stored insideitem stacks. -
-
Uses of Enchantment in org.bukkit
Fields in org.bukkit with type parameters of type Enchantment Modifier and Type Field Description static Registry<Enchantment>Registry. ENCHANTMENTServer enchantments. -
Uses of Enchantment in org.bukkit.enchantments
Subclasses of Enchantment in org.bukkit.enchantments Modifier and Type Class Description classEnchantmentWrapperA simple wrapper for ease of selectingEnchantmentsFields in org.bukkit.enchantments declared as Enchantment Modifier and Type Field Description static EnchantmentEnchantment. ARROW_DAMAGEProvides extra damage when shooting arrows from bowsstatic EnchantmentEnchantment. ARROW_FIRESets entities on fire when hit by arrows shot from a bowstatic EnchantmentEnchantment. ARROW_INFINITEProvides infinite arrows when shooting a bowstatic EnchantmentEnchantment. ARROW_KNOCKBACKProvides a knockback when an entity is hit by an arrow from a bowstatic EnchantmentEnchantment. BINDING_CURSEItem cannot be removedstatic EnchantmentEnchantment. CHANNELINGStrikes lightning when a mob is hit with a trident if conditions are stormystatic EnchantmentEnchantment. DAMAGE_ALLIncreases damage against all targetsstatic EnchantmentEnchantment. DAMAGE_ARTHROPODSIncreases damage against arthropod targetsstatic EnchantmentEnchantment. DAMAGE_UNDEADIncreases damage against undead targetsstatic EnchantmentEnchantment. DEPTH_STRIDERIncreases walking speed while in waterstatic EnchantmentEnchantment. DIG_SPEEDIncreases the rate at which you mine/digstatic EnchantmentEnchantment. DURABILITYDecreases the rate at which a tool looses durabilitystatic EnchantmentEnchantment. FIRE_ASPECTWhen attacking a target, has a chance to set them on firestatic EnchantmentEnchantment. FROST_WALKERFreezes any still water adjacent to ice / frost which player is walking onstatic EnchantmentEnchantment. IMPALINGDeals more damage to mobs that live in the oceanstatic EnchantmentEnchantment. KNOCKBACKAll damage to other targets will knock them back when hitstatic EnchantmentEnchantment. LOOT_BONUS_BLOCKSProvides a chance of gaining extra loot when destroying blocksstatic EnchantmentEnchantment. LOOT_BONUS_MOBSProvides a chance of gaining extra loot when killing monstersstatic EnchantmentEnchantment. LOYALTYCauses a thrown trident to return to the player who threw itstatic EnchantmentEnchantment. LUCKDecreases odds of catching worthless junkstatic EnchantmentEnchantment. LUREIncreases rate of fish biting your hookstatic EnchantmentEnchantment. MENDINGAllows mending the item using experience orbsstatic EnchantmentEnchantment. MULTISHOTShoot multiple arrows from crossbowsstatic EnchantmentEnchantment. OXYGENDecreases the rate of air loss whilst underwaterstatic EnchantmentEnchantment. PIERCINGCrossbow projectiles pierce entitiesstatic EnchantmentEnchantment. PROTECTION_ENVIRONMENTALProvides protection against environmental damagestatic EnchantmentEnchantment. PROTECTION_EXPLOSIONSProvides protection against explosive damagestatic EnchantmentEnchantment. PROTECTION_FALLProvides protection against fall damagestatic EnchantmentEnchantment. PROTECTION_FIREProvides protection against fire damagestatic EnchantmentEnchantment. PROTECTION_PROJECTILEProvides protection against projectile damagestatic EnchantmentEnchantment. QUICK_CHARGECharges crossbows quicklystatic EnchantmentEnchantment. RIPTIDEWhen it is rainy, launches the player in the direction their trident is thrownstatic EnchantmentEnchantment. SILK_TOUCHAllows blocks to drop themselves instead of fragments (for example, stone instead of cobblestone)static EnchantmentEnchantment. SWEEPING_EDGEIncreases damage against targets when using a sweep attackstatic EnchantmentEnchantment. THORNSDamages the attackerstatic EnchantmentEnchantment. VANISHING_CURSEItem disappears instead of droppingstatic EnchantmentEnchantment. WATER_WORKERIncreases the speed at which a player may mine underwaterMethods in org.bukkit.enchantments that return Enchantment Modifier and Type Method Description static EnchantmentEnchantment. getByKey(NamespacedKey key)Gets the Enchantment at the specified keystatic EnchantmentEnchantment. getByName(String name)Deprecated.enchantments are badly named, usegetByKey(org.bukkit.NamespacedKey).EnchantmentEnchantmentOffer. getEnchantment()Get the type of the enchantment.EnchantmentEnchantmentWrapper. 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 Enchantment Modifier and Type Method Description abstract 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 Enchantment Constructor Description EnchantmentOffer(Enchantment enchantment, int enchantmentLevel, int cost) -
Uses of Enchantment in org.bukkit.event.enchantment
Methods in org.bukkit.event.enchantment that return types with arguments of type Enchantment Modifier and Type Method Description Map<Enchantment,Integer>EnchantItemEvent. getEnchantsToAdd()Get map of enchantment (levels, keyed by type) to be added to item (modify map returned to change values).Constructor parameters in org.bukkit.event.enchantment with type arguments of type Enchantment Constructor Description EnchantItemEvent(Player enchanter, InventoryView view, Block table, ItemStack item, int level, Map<Enchantment,Integer> enchants, int i) -
Uses of Enchantment in org.bukkit.inventory
Methods in org.bukkit.inventory that return types with arguments of type Enchantment Modifier and Type Method Description Map<Enchantment,Integer>ItemStack. getEnchantments()Gets a map containing all enchantments and their levels on this item.Methods in org.bukkit.inventory with parameters of type Enchantment Modifier and Type Method Description voidItemStack. 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 Enchantment Modifier and Type Method Description voidItemStack. 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 Enchantment Modifier and Type Method Description Map<Enchantment,Integer>ItemMeta. getEnchants()Returns a copy the enchantments in this ItemMeta.Map<Enchantment,Integer>EnchantmentStorageMeta. getStoredEnchants()Gets a copy the stored enchantments in this ItemMeta.Methods in org.bukkit.inventory.meta with parameters of type Enchantment Modifier and Type Method Description booleanItemMeta. 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.
-