/**
* 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);
}
BottledExpListener.java 文件源码
java
阅读 32
收藏 0
点赞 0
评论 0
项目:HCFCore
作者:
评论列表
文章目录