ItemMatcher.java 文件源码

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

项目:SupaCommons 作者:
@Override
public boolean apply(@Nullable ItemStack item1, @Nullable ItemStack item2) {
  Boolean b = precondition(item1, item2, true);
  if (b != null) {
    return b;
  }
  if (item1.getItemMeta() instanceof MapMeta
      && item2.getItemMeta() instanceof MapMeta) {
    return ((MapMeta) item1.getItemMeta()).isScaling()
           == ((MapMeta) item2.getItemMeta()).isScaling();
  }
  return false;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号