BottledExpListener.java 文件源码

java
阅读 32 收藏 0 点赞 0 评论 0

项目:HCFCore 作者:
/**
 * Checks if an {@link ItemStack} is bottled exp.
 *
 * @param stack
 *            the {@link ItemStack} to check
 * @return true if is bottled exp
 */
private boolean isBottledExperience(ItemStack stack) {
    if (stack == null || !stack.hasItemMeta()) {
        return false;
    }

    ItemMeta meta = stack.getItemMeta();
    return meta.hasDisplayName() && meta.getDisplayName().equals(BOTTLED_EXP_DISPLAY_NAME);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号