Java Code Examples for org.bukkit.enchantments.EnchantmentTarget#FISHING_ROD
The following examples show how to use
org.bukkit.enchantments.EnchantmentTarget#FISHING_ROD .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CraftEnchantment.java From Kettle with GNU General Public License v3.0 | 5 votes |
@Override public EnchantmentTarget getItemTarget() { switch (target.type) { case ALL: return EnchantmentTarget.ALL; case ARMOR: return EnchantmentTarget.ARMOR; case ARMOR_FEET: return EnchantmentTarget.ARMOR_FEET; case ARMOR_HEAD: return EnchantmentTarget.ARMOR_HEAD; case ARMOR_LEGS: return EnchantmentTarget.ARMOR_LEGS; case ARMOR_CHEST: return EnchantmentTarget.ARMOR_TORSO; case DIGGER: return EnchantmentTarget.TOOL; case WEAPON: return EnchantmentTarget.WEAPON; case BOW: return EnchantmentTarget.BOW; case FISHING_ROD: return EnchantmentTarget.FISHING_ROD; case BREAKABLE: return EnchantmentTarget.BREAKABLE; case WEARABLE: return EnchantmentTarget.WEARABLE; default: return null; } }
Example 2
Source File: CraftEnchantment.java From Thermos with GNU General Public License v3.0 | 5 votes |
@Override public EnchantmentTarget getItemTarget() { switch (target.type) { case all: return EnchantmentTarget.ALL; case armor: return EnchantmentTarget.ARMOR; case armor_feet: return EnchantmentTarget.ARMOR_FEET; case armor_head: return EnchantmentTarget.ARMOR_HEAD; case armor_legs: return EnchantmentTarget.ARMOR_LEGS; case armor_torso: return EnchantmentTarget.ARMOR_TORSO; case digger: return EnchantmentTarget.TOOL; case weapon: return EnchantmentTarget.WEAPON; case bow: return EnchantmentTarget.BOW; case fishing_rod: return EnchantmentTarget.FISHING_ROD; default: return null; } }