本文整理汇总了Java中org.bukkit.enchantments.EnchantmentTarget类的典型用法代码示例。如果您正苦于以下问题:Java EnchantmentTarget类的具体用法?Java EnchantmentTarget怎么用?Java EnchantmentTarget使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
EnchantmentTarget类属于org.bukkit.enchantments包,在下文中一共展示了EnchantmentTarget类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getItemTarget
import org.bukkit.enchantments.EnchantmentTarget; //导入依赖的package包/类
@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;
default:
return null;
}
}
示例2: getItemTarget
import org.bukkit.enchantments.EnchantmentTarget; //导入依赖的package包/类
@Override
public EnchantmentTarget getItemTarget() {
switch (target.field_77351_y) {
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;
default:
return null;
}
}
示例3: getItemTarget
import org.bukkit.enchantments.EnchantmentTarget; //导入依赖的package包/类
@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;
}
}
示例4: getItemTarget
import org.bukkit.enchantments.EnchantmentTarget; //导入依赖的package包/类
@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;
}
}
示例5: getItemTarget
import org.bukkit.enchantments.EnchantmentTarget; //导入依赖的package包/类
@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;
}
}
示例6: getItemTarget
import org.bukkit.enchantments.EnchantmentTarget; //导入依赖的package包/类
public EnchantmentTarget getItemTarget() {
return EnchantmentTarget.ALL;
}
示例7: getItemTarget
import org.bukkit.enchantments.EnchantmentTarget; //导入依赖的package包/类
@Override
public EnchantmentTarget getItemTarget() {
return null;
}
示例8: getItemTarget
import org.bukkit.enchantments.EnchantmentTarget; //导入依赖的package包/类
@Override
public EnchantmentTarget getItemTarget()
{
return null;
}
示例9: getItemTarget
import org.bukkit.enchantments.EnchantmentTarget; //导入依赖的package包/类
@Override
public EnchantmentTarget getItemTarget() {
return EnchantmentTarget.ALL;
}
示例10: getTarget
import org.bukkit.enchantments.EnchantmentTarget; //导入依赖的package包/类
public EnchantmentTarget getTarget() {
return type.getItemTarget();
}
示例11: getItemTarget
import org.bukkit.enchantments.EnchantmentTarget; //导入依赖的package包/类
@Override
public EnchantmentTarget getItemTarget() {
return null;
}
示例12: twoWay
import org.bukkit.enchantments.EnchantmentTarget; //导入依赖的package包/类
private static void twoWay(EnchantmentType nukkit, EnchantmentTarget bukkit) {
nukkitToBukkit.put(nukkit, bukkit);
bukkitToNukkit.put(bukkit, nukkit);
}
示例13: getItemTarget
import org.bukkit.enchantments.EnchantmentTarget; //导入依赖的package包/类
@Override
public EnchantmentTarget getItemTarget() {
return PokkitEnchantmentTarget.toBukkit(nukkit.type);
}
示例14: testBukkitToNukkit
import org.bukkit.enchantments.EnchantmentTarget; //导入依赖的package包/类
@Test
public void testBukkitToNukkit() {
for (EnchantmentTarget target : EnchantmentTarget.values()) {
assertNotNull("Type " + target + " must have a mapping", PokkitEnchantmentTarget.toNukkit(target));
}
}
示例15: getItemTarget
import org.bukkit.enchantments.EnchantmentTarget; //导入依赖的package包/类
@Override public EnchantmentTarget getItemTarget() {
return null;
}