当前位置: 首页>>代码示例>>Java>>正文


Java EnchantmentTarget.ARMOR_FEET属性代码示例

本文整理汇总了Java中org.bukkit.enchantments.EnchantmentTarget.ARMOR_FEET属性的典型用法代码示例。如果您正苦于以下问题:Java EnchantmentTarget.ARMOR_FEET属性的具体用法?Java EnchantmentTarget.ARMOR_FEET怎么用?Java EnchantmentTarget.ARMOR_FEET使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.bukkit.enchantments.EnchantmentTarget的用法示例。


在下文中一共展示了EnchantmentTarget.ARMOR_FEET属性的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: 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;
    default:
        return null;
    }
}
 
开发者ID:AlmuraDev,项目名称:Almura-Server,代码行数:25,代码来源:CraftEnchantment.java

示例2: getItemTarget

@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;
    }
}
 
开发者ID:agaricusb,项目名称:MCPBukkit,代码行数:25,代码来源:CraftEnchantment.java

示例3: 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;
    }
}
 
开发者ID:UraniumMC,项目名称:Uranium,代码行数:27,代码来源:CraftEnchantment.java

示例4: 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;
    }
}
 
开发者ID:OvercastNetwork,项目名称:CraftBukkit,代码行数:27,代码来源:CraftEnchantment.java

示例5: 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;
    }
}
 
开发者ID:bergerkiller,项目名称:SpigotSource,代码行数:27,代码来源:CraftEnchantment.java


注:本文中的org.bukkit.enchantments.EnchantmentTarget.ARMOR_FEET属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。