Package com.kamikazejam.kamicommon.util
Class ItemUtil
java.lang.Object
com.kamikazejam.kamicommon.util.ItemUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isSimplySimilar
(@Nullable ItemStack item1, @Nullable ItemStack item2) A simple custom implementation of the traditionalItemStack.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.
-
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 traditionalItemStack.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
-