Java 类net.minecraft.server.EnchantmentManager 实例源码

项目:CraftBukkit    文件:CraftItemStack.java   
@Override
public int getEnchantmentLevel(Enchantment ench) {
    Validate.notNull(ench, "Cannot find null enchantment");
    if (handle == null) {
        return 0;
    }
    return EnchantmentManager.getEnchantmentLevel(ench.getId(), handle);
}
项目:Craftbukkit    文件:CraftItemStack.java   
@Override
public int getEnchantmentLevel(Enchantment ench) {
    Validate.notNull(ench, "Cannot find null enchantment");
    if (handle == null) {
        return 0;
    }
    return EnchantmentManager.getEnchantmentLevel(ench.getId(), handle);
}
项目:Almura-Server    文件:CraftItemStack.java   
@Override
public int getEnchantmentLevel(Enchantment ench) {
    Validate.notNull(ench, "Cannot find null enchantment");
    if (handle == null) {
        return 0;
    }
    return EnchantmentManager.getEnchantmentLevel(ench.getId(), handle);
}
项目:Tweakkit-Server    文件:CraftItemStack.java   
@Override
public int getEnchantmentLevel(Enchantment ench) {
    Validate.notNull(ench, "Cannot find null enchantment");
    if (handle == null) {
        return 0;
    }
    return EnchantmentManager.getEnchantmentLevel(ench.getId(), handle);
}
项目:SpigotSource    文件:CraftItemStack.java   
@Override
public int getEnchantmentLevel(Enchantment ench) {
    Validate.notNull(ench, "Cannot find null enchantment");
    if (handle == null) {
        return 0;
    }
    return EnchantmentManager.getEnchantmentLevel(CraftEnchantment.getRaw(ench), handle);
}
项目:Craft-city    文件:CraftItemStack.java   
@Override
public int getEnchantmentLevel(Enchantment ench) {
    Validate.notNull(ench, "Cannot find null enchantment");
    if (handle == null) {
        return 0;
    }
    return EnchantmentManager.getEnchantmentLevel(ench.getId(), handle);
}