includes

public abstract boolean includes(Material item)
public boolean includes(ItemStack item)

Check whether this target includes the specified item.

Return

True if the target includes the item

Parameters

item

The item to check