Uses of Class
org.bukkit.enchantments.Enchantment
-
Packages that use Enchantment Package Description org.bukkit The root package of the Bukkit API, contains generalized API classes.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 @Nullable EnchantmentEnchantment. getByKey(@Nullable NamespacedKey key)Gets the Enchantment at the specified keystatic @Nullable EnchantmentEnchantment. getByName(@Nullable String name)Deprecated.enchantments are badly named, usegetByKey(org.bukkit.NamespacedKey).@NotNull EnchantmentEnchantmentOffer. getEnchantment()Get the type of the enchantment.@NotNull EnchantmentEnchantmentWrapper. getEnchantment()Gets the enchantment bound to this wrapperstatic @NotNull 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(@NotNull Enchantment other)Check if this enchantment conflicts with another enchantment.booleanEnchantmentWrapper. conflictsWith(@NotNull Enchantment other)static voidEnchantment. registerEnchantment(@NotNull Enchantment enchantment)Registers an enchantment with the given ID and object.voidEnchantmentOffer. setEnchantment(@NotNull Enchantment enchantment)Sets the type of the enchantment.Constructors in org.bukkit.enchantments with parameters of type Enchantment Constructor Description EnchantmentOffer(@NotNull 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 @NotNull 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(@NotNull Player enchanter, @NotNull InventoryView view, @NotNull Block table, @NotNull ItemStack item, int level, @NotNull 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 @NotNull 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(@NotNull Enchantment ench, int level)Adds the specifiedEnchantmentto this item stack.voidItemStack. addUnsafeEnchantment(@NotNull Enchantment ench, int level)Adds the specifiedEnchantmentto this item stack.booleanItemStack. containsEnchantment(@NotNull Enchantment ench)Checks if this ItemStack contains the givenEnchantmentintItemStack. getEnchantmentLevel(@NotNull Enchantment ench)Gets the level of the specified enchantment on this item stackintItemStack. removeEnchantment(@NotNull 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(@NotNull Map<Enchantment,Integer> enchantments)Adds the specified enchantments to this item stack.voidItemStack. addUnsafeEnchantments(@NotNull 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 @NotNull Map<Enchantment,Integer>ItemMeta. getEnchants()Returns a copy the enchantments in this ItemMeta.@NotNull 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(@NotNull Enchantment ench, int level, boolean ignoreLevelRestriction)Adds the specified enchantment to this item meta.booleanEnchantmentStorageMeta. addStoredEnchant(@NotNull Enchantment ench, int level, boolean ignoreLevelRestriction)Stores the specified enchantment in this item meta.intItemMeta. getEnchantLevel(@NotNull Enchantment ench)Checks for the level of the specified enchantment.intEnchantmentStorageMeta. getStoredEnchantLevel(@NotNull Enchantment ench)Checks for the level of the stored enchantment.booleanItemMeta. hasConflictingEnchant(@NotNull Enchantment ench)Checks if the specified enchantment conflicts with any enchantments in this ItemMeta.booleanEnchantmentStorageMeta. hasConflictingStoredEnchant(@NotNull Enchantment ench)Checks if the specified enchantment conflicts with any enchantments in this ItemMeta.booleanItemMeta. hasEnchant(@NotNull Enchantment ench)Checks for existence of the specified enchantment.booleanEnchantmentStorageMeta. hasStoredEnchant(@NotNull Enchantment ench)Checks for storage of the specified enchantment.booleanItemMeta. removeEnchant(@NotNull Enchantment ench)Removes the specified enchantment from this item meta.booleanEnchantmentStorageMeta. removeStoredEnchant(@NotNull Enchantment ench)Remove the specified stored enchantment from this item meta.
-