remove

public abstract void remove(Material material)

Removes all stacks in the inventory matching the given material.

Parameters

material

The material to remove

Throws

if material is null


public abstract void remove(ItemStack item)

Removes all stacks in the inventory matching the given stack.

This will only match getClassById slot if both the type and the amount of the stack match

Parameters

item

The ItemStack to match against