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


Java EnchantmentTarget类代码示例

本文整理汇总了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;
    }
}
 
开发者ID:AlmuraDev,项目名称:Almura-Server,代码行数:26,代码来源:CraftEnchantment.java

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

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

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

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

示例6: getItemTarget

import org.bukkit.enchantments.EnchantmentTarget; //导入依赖的package包/类
public EnchantmentTarget getItemTarget() {
    return EnchantmentTarget.ALL;
}
 
开发者ID:upperlevel,项目名称:uppercore,代码行数:4,代码来源:EnchantGlow.java

示例7: getItemTarget

import org.bukkit.enchantments.EnchantmentTarget; //导入依赖的package包/类
@Override
public EnchantmentTarget getItemTarget() {
    return null;
}
 
开发者ID:WarzoneMC,项目名称:Warzone,代码行数:5,代码来源:EnchantGlow.java

示例8: getItemTarget

import org.bukkit.enchantments.EnchantmentTarget; //导入依赖的package包/类
@Override
public EnchantmentTarget getItemTarget()
{
    return null;
}
 
开发者ID:SamaGames,项目名称:SamaGamesAPI,代码行数:6,代码来源:GlowEffect.java

示例9: getItemTarget

import org.bukkit.enchantments.EnchantmentTarget; //导入依赖的package包/类
@Override
public EnchantmentTarget getItemTarget() {
    return EnchantmentTarget.ALL;
}
 
开发者ID:GameBoxx,项目名称:GameBoxx,代码行数:5,代码来源:GlowEnchant.java

示例10: getTarget

import org.bukkit.enchantments.EnchantmentTarget; //导入依赖的package包/类
public EnchantmentTarget getTarget() {
    return type.getItemTarget();
}
 
开发者ID:GameBoxx,项目名称:GameBoxx,代码行数:4,代码来源:Enchant.java

示例11: getItemTarget

import org.bukkit.enchantments.EnchantmentTarget; //导入依赖的package包/类
@Override
public EnchantmentTarget getItemTarget() {
	return null;
}
 
开发者ID:DamoclesProject,项目名称:Damocles,代码行数:5,代码来源:BlankEnchant.java

示例12: twoWay

import org.bukkit.enchantments.EnchantmentTarget; //导入依赖的package包/类
private static void twoWay(EnchantmentType nukkit, EnchantmentTarget bukkit) {
	nukkitToBukkit.put(nukkit, bukkit);
	bukkitToNukkit.put(bukkit, nukkit);
}
 
开发者ID:rutgerkok,项目名称:Pokkit,代码行数:5,代码来源:PokkitEnchantmentTarget.java

示例13: getItemTarget

import org.bukkit.enchantments.EnchantmentTarget; //导入依赖的package包/类
@Override
public EnchantmentTarget getItemTarget() {
	return PokkitEnchantmentTarget.toBukkit(nukkit.type);
}
 
开发者ID:rutgerkok,项目名称:Pokkit,代码行数:5,代码来源:PokkitEnchantmentImpl.java

示例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));
	}
}
 
开发者ID:rutgerkok,项目名称:Pokkit,代码行数:7,代码来源:PokkitEnchantmentTargetTest.java

示例15: getItemTarget

import org.bukkit.enchantments.EnchantmentTarget; //导入依赖的package包/类
@Override public EnchantmentTarget getItemTarget() {
    return null;
}
 
开发者ID:SupaHam,项目名称:SupaCommons,代码行数:4,代码来源:EnchantmentUtils.java


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