Class ItemUtil

java.lang.Object
com.kamikazejam.kamicommon.util.ItemUtil

public class ItemUtil extends Object
  • Constructor Details

    • ItemUtil

      public ItemUtil()
  • Method Details

    • isSimplySimilar

      public static boolean isSimplySimilar(@Nullable @Nullable ItemStack item1, @Nullable @Nullable ItemStack item2)
      A simple custom implementation of the traditional ItemStack.isSimilar(ItemStack) method.
      This method compares the type, amount, durability, name, lore, color, and enchantments of two items.
      If all of these fields are equal, the items are considered similar.
      Returns:
      If the items are similar