| 
 | ||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Enchantment | |
|---|---|
| org.bukkit.enchantments | Classes relating to the specialized enhancements to item 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 inside item stacks. | 
| Uses of Enchantment in org.bukkit.enchantments | 
|---|
| Subclasses of Enchantment in org.bukkit.enchantments | |
|---|---|
|  class | EnchantmentWrapperA simple wrapper for ease of selecting Enchantments | 
| Fields in org.bukkit.enchantments declared as Enchantment | |
|---|---|
| static Enchantment | Enchantment.ARROW_DAMAGEProvides extra damage when shooting arrows from bows | 
| static Enchantment | Enchantment.ARROW_FIRESets entities on fire when hit by arrows shot from a bow | 
| static Enchantment | Enchantment.ARROW_INFINITEProvides infinite arrows when shooting a bow | 
| static Enchantment | Enchantment.ARROW_KNOCKBACKProvides a knockback when an entity is hit by an arrow from a bow | 
| static Enchantment | Enchantment.DAMAGE_ALLIncreases damage against all targets | 
| static Enchantment | Enchantment.DAMAGE_ARTHROPODSIncreases damage against arthropod targets | 
| static Enchantment | Enchantment.DAMAGE_UNDEADIncreases damage against undead targets | 
| static Enchantment | Enchantment.DIG_SPEEDIncreases the rate at which you mine/dig | 
| static Enchantment | Enchantment.DURABILITYDecreases the rate at which a tool looses durability | 
| static Enchantment | Enchantment.FIRE_ASPECTWhen attacking a target, has a chance to set them on fire | 
| static Enchantment | Enchantment.KNOCKBACKAll damage to other targets will knock them back when hit | 
| static Enchantment | Enchantment.LOOT_BONUS_BLOCKSProvides a chance of gaining extra loot when destroying blocks | 
| static Enchantment | Enchantment.LOOT_BONUS_MOBSProvides a chance of gaining extra loot when killing monsters | 
| static Enchantment | Enchantment.OXYGENDecreases the rate of air loss whilst underwater | 
| static Enchantment | Enchantment.PROTECTION_ENVIRONMENTALProvides protection against environmental damage | 
| static Enchantment | Enchantment.PROTECTION_EXPLOSIONSProvides protection against explosive damage | 
| static Enchantment | Enchantment.PROTECTION_FALLProvides protection against fall damage | 
| static Enchantment | Enchantment.PROTECTION_FIREProvides protection against fire damage | 
| static Enchantment | Enchantment.PROTECTION_PROJECTILEProvides protection against projectile damage | 
| static Enchantment | Enchantment.SILK_TOUCHAllows blocks to drop themselves instead of fragments (for example, stone instead of cobblestone) | 
| static Enchantment | Enchantment.THORNSDamages the attacker | 
| static Enchantment | Enchantment.WATER_WORKERIncreases the speed at which a player may mine underwater | 
| Methods in org.bukkit.enchantments that return Enchantment | |
|---|---|
| static Enchantment | Enchantment.getById(int id)Gets the Enchantment at the specified ID | 
| static Enchantment | Enchantment.getByName(String name)Gets the Enchantment at the specified name | 
|  Enchantment | EnchantmentWrapper.getEnchantment()Gets the enchantment bound to this wrapper | 
| static Enchantment[] | Enchantment.values()Gets an array of all the registered Enchantments | 
| Methods in org.bukkit.enchantments with parameters of type Enchantment | |
|---|---|
| abstract  boolean | Enchantment.conflictsWith(Enchantment other)Check if this enchantment conflicts with another enchantment. | 
|  boolean | EnchantmentWrapper.conflictsWith(Enchantment other) | 
| static void | Enchantment.registerEnchantment(Enchantment enchantment)Registers an enchantment with the given ID and object. | 
| Uses of Enchantment in org.bukkit.event.enchantment | 
|---|
| Methods in org.bukkit.event.enchantment that return types with arguments of type Enchantment | |
|---|---|
|  Map<Enchantment,Integer> | EnchantItemEvent.getEnchantsToAdd()Get map of enchantment (levels, keyed by type) to be added to item (modify map returned to change values) Note: Any enchantments not allowed for the item will be ignored | 
| Constructor parameters in org.bukkit.event.enchantment with type arguments of type Enchantment | |
|---|---|
| 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 | |
|---|---|
|  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 | |
|---|---|
|  void | ItemStack.addEnchantment(Enchantment ench,
               int level)Adds the specified Enchantmentto this item stack. | 
|  void | ItemStack.addUnsafeEnchantment(Enchantment ench,
                     int level)Adds the specified Enchantmentto this item stack. | 
|  boolean | ItemStack.containsEnchantment(Enchantment ench)Checks if this ItemStack contains the given Enchantment | 
|  int | ItemStack.getEnchantmentLevel(Enchantment ench)Gets the level of the specified enchantment on this item stack | 
|  int | ItemStack.removeEnchantment(Enchantment ench)Removes the specified Enchantmentif it exists on this item stack | 
| Method parameters in org.bukkit.inventory with type arguments of type Enchantment | |
|---|---|
|  void | ItemStack.addEnchantments(Map<Enchantment,Integer> enchantments)Adds the specified enchantments to this item stack. | 
|  void | ItemStack.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 | |
|---|---|
|  Map<Enchantment,Integer> | ItemMeta.getEnchants()Returns a copy the enchantments in this ItemMeta. Returns an empty map if none. | 
|  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 | |
|---|---|
|  boolean | ItemMeta.addEnchant(Enchantment ench,
           int level,
           boolean ignoreLevelRestriction)Adds the specified enchantment to this item meta. | 
|  boolean | EnchantmentStorageMeta.addStoredEnchant(Enchantment ench,
                 int level,
                 boolean ignoreLevelRestriction)Stores the specified enchantment in this item meta. | 
|  int | ItemMeta.getEnchantLevel(Enchantment ench)Checks for the level of the specified enchantment. | 
|  int | EnchantmentStorageMeta.getStoredEnchantLevel(Enchantment ench)Checks for the level of the stored enchantment. | 
|  boolean | ItemMeta.hasEnchant(Enchantment ench)Checks for existence of the specified enchantment. | 
|  boolean | EnchantmentStorageMeta.hasStoredEnchant(Enchantment ench)Checks for storage of the specified enchantment. | 
|  boolean | ItemMeta.removeEnchant(Enchantment ench)Removes the specified enchantment from this item meta. | 
|  boolean | EnchantmentStorageMeta.removeStoredEnchant(Enchantment ench)Remove the specified stored enchantment from this item meta. | 
| 
 | ||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||