本文整理汇总了Java中org.bukkit.enchantments.EnchantmentTarget.FISHING_ROD属性的典型用法代码示例。如果您正苦于以下问题:Java EnchantmentTarget.FISHING_ROD属性的具体用法?Java EnchantmentTarget.FISHING_ROD怎么用?Java EnchantmentTarget.FISHING_ROD使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.bukkit.enchantments.EnchantmentTarget
的用法示例。
在下文中一共展示了EnchantmentTarget.FISHING_ROD属性的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getItemTarget
@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;
}
}
示例2: getItemTarget
@Override
public EnchantmentTarget getItemTarget() {
switch (target.slot) {
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;
}
}
示例3: getItemTarget
@Override
public EnchantmentTarget getItemTarget() {
switch (target.itemTarget) {
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;
default:
return null;
}
}