Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.enchantments.EnchantmentWrapper Class Reference
Inheritance diagram for org.bukkit.enchantments.EnchantmentWrapper:

Public Member Functions

 EnchantmentWrapper (int id)
Enchantment getEnchantment ()
int getMaxLevel ()
int getStartLevel ()
EnchantmentTarget getItemTarget ()
boolean canEnchantItem (ItemStack item)
String getName ()
boolean conflictsWith (Enchantment other)
- Public Member Functions inherited from org.bukkit.enchantments.Enchantment
 Enchantment (int id)
int getId ()
abstract String getName ()
abstract int getMaxLevel ()
abstract int getStartLevel ()
abstract EnchantmentTarget getItemTarget ()
abstract boolean conflictsWith (Enchantment other)
abstract boolean canEnchantItem (ItemStack item)
boolean equals (Object obj)
int hashCode ()
String toString ()

Additional Inherited Members

- Static Public Member Functions inherited from org.bukkit.enchantments.Enchantment
static void registerEnchantment (Enchantment enchantment)
static boolean isAcceptingRegistrations ()
static void stopAcceptingRegistrations ()
static Enchantment getById (int id)
static Enchantment getByName (String name)
static Enchantment[] values ()
- Static Public Attributes inherited from org.bukkit.enchantments.Enchantment
static final Enchantment PROTECTION_ENVIRONMENTAL = new EnchantmentWrapper(0)
static final Enchantment PROTECTION_FIRE = new EnchantmentWrapper(1)
static final Enchantment PROTECTION_FALL = new EnchantmentWrapper(2)
static final Enchantment PROTECTION_EXPLOSIONS = new EnchantmentWrapper(3)
static final Enchantment PROTECTION_PROJECTILE = new EnchantmentWrapper(4)
static final Enchantment OXYGEN = new EnchantmentWrapper(5)
static final Enchantment WATER_WORKER = new EnchantmentWrapper(6)
static final Enchantment THORNS = new EnchantmentWrapper(7)
static final Enchantment DAMAGE_ALL = new EnchantmentWrapper(16)
static final Enchantment DAMAGE_UNDEAD = new EnchantmentWrapper(17)
static final Enchantment DAMAGE_ARTHROPODS = new EnchantmentWrapper(18)
static final Enchantment KNOCKBACK = new EnchantmentWrapper(19)
static final Enchantment FIRE_ASPECT = new EnchantmentWrapper(20)
static final Enchantment LOOT_BONUS_MOBS = new EnchantmentWrapper(21)
static final Enchantment DIG_SPEED = new EnchantmentWrapper(32)
static final Enchantment SILK_TOUCH = new EnchantmentWrapper(33)
static final Enchantment DURABILITY = new EnchantmentWrapper(34)
static final Enchantment LOOT_BONUS_BLOCKS = new EnchantmentWrapper(35)
static final Enchantment ARROW_DAMAGE = new EnchantmentWrapper(48)
static final Enchantment ARROW_KNOCKBACK = new EnchantmentWrapper(49)
static final Enchantment ARROW_FIRE = new EnchantmentWrapper(50)
static final Enchantment ARROW_INFINITE = new EnchantmentWrapper(51)
static final Enchantment LUCK = new EnchantmentWrapper(61)
static final Enchantment LURE = new EnchantmentWrapper(62)

Detailed Description

A simple wrapper for ease of selecting Enchantments

Definition at line 8 of file EnchantmentWrapper.java.

Member Function Documentation

Enchantment org.bukkit.enchantments.EnchantmentWrapper.getEnchantment ( )

Gets the enchantment bound to this wrapper


Definition at line 18 of file EnchantmentWrapper.java.

References org.bukkit.enchantments.Enchantment.getById(), and org.bukkit.enchantments.Enchantment.getId().

18  {
19  return Enchantment.getById(getId());
20  }

The documentation for this class was generated from the following file: