isSimilar

public boolean isSimilar(ItemStack stack)

This method is the same as equals, but does not consider stack size (amount).

Return

true if the two stacks are equal, ignoring the amount

Parameters

stack

the item stack to compare to