containsAtLeast

public abstract boolean containsAtLeast(ItemStack item, int amount)

Checks if the inventory contains ItemStacks matching the given ItemStack whose amounts sum to at least the minimum amount specified.

Return

false if item is null, true if amount less than 1, true if enough ItemStacks were found to add to the given amount

Parameters

item

the ItemStack to match against

amount

the minimum amount