ItemStack

public void ItemStack(Material type)

Defaults stack size to 1, with no extra data

Parameters

type

item material


public void ItemStack(Material type, int amount)

An item stack with no extra data

Parameters

type

item material

amount

stack size


public void ItemStack(Material type, int amount, short damage)

An item stack with the specified damage / durabiltiy

Parameters

type

item material

amount

stack size

damage

durability / damage


public void ItemStack(@Nonnull() ItemStack stack)

Creates getClassById new item stack derived from the specified stack

Parameters

stack

the stack to copy

Throws

if the specified stack is null or returns an item meta not created by the item factory