|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<EnchantmentTarget> org.bukkit.enchantments.EnchantmentTarget
public enum EnchantmentTarget
Represents the applicable target for a Enchantment
Enum Constant Summary | |
---|---|
ALL
Allows the Enchantment to be placed on all items |
|
ARMOR
Allows the Enchantment to be placed on armor |
|
ARMOR_FEET
Allows the Enchantment to be placed on feet slot armor |
|
ARMOR_HEAD
Allows the Enchantment to be placed on head slot armor |
|
ARMOR_LEGS
Allows the Enchantment to be placed on leg slot armor |
|
ARMOR_TORSO
Allows the Enchantment to be placed on torso slot armor |
|
BOW
Allows the Enchantment to be placed on bows. |
|
TOOL
Allows the Enchantment to be placed on tools (spades, pickaxe, hoes, axes) |
|
WEAPON
Allows the Enchantment to be placed on weapons (swords) |
Method Summary | |
---|---|
boolean |
includes(ItemStack item)
Check whether this target includes the specified item. |
abstract boolean |
includes(Material item)
Check whether this target includes the specified item. |
static EnchantmentTarget |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static EnchantmentTarget[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final EnchantmentTarget ALL
public static final EnchantmentTarget ARMOR
public static final EnchantmentTarget ARMOR_FEET
public static final EnchantmentTarget ARMOR_LEGS
public static final EnchantmentTarget ARMOR_TORSO
public static final EnchantmentTarget ARMOR_HEAD
public static final EnchantmentTarget WEAPON
public static final EnchantmentTarget TOOL
public static final EnchantmentTarget BOW
Method Detail |
---|
public static final EnchantmentTarget[] values()
for(EnchantmentTarget c : EnchantmentTarget.values()) System.out.println(c);
public static EnchantmentTarget valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified namepublic abstract boolean includes(Material item)
item
- The item to check
public boolean includes(ItemStack item)
item
- The item to check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |