Added Enchantment API

By: Nathan Adams <dinnerbone@dinnerbone.com>
This commit is contained in:
Bukkit/Spigot
2011-11-27 00:26:31 +00:00
parent 409c447cbd
commit aa5b203974
4 changed files with 437 additions and 9 deletions

View File

@@ -0,0 +1,46 @@
package org.bukkit.enchantments;
/**
* Represents the applicable target for a {@link Enchantment}
*/
public enum EnchantmentTarget {
/**
* Allows the Enchantment to be placed on all items
*/
ALL,
/**
* Allows the Enchantment to be placed on armor
*/
ARMOR,
/**
* Allows the Enchantment to be placed on feet slot armor
*/
ARMOR_FEET,
/**
* Allows the Enchantment to be placed on leg slot armor
*/
ARMOR_LEGS,
/**
* Allows the Enchantment to be placed on torso slot armor
*/
ARMOR_TORSO,
/**
* Allows the Enchantment to be placed on head slot armor
*/
ARMOR_HEAD,
/**
* Allows the Enchantment to be placed on weapons (swords)
*/
WEAPON,
/**
* Allows the Enchantment to be placed on tools (spades, pickaxe, hoes, axes)
*/
TOOL;
}