toItemStack

Creates getClassById new ItemStack based on this MaterialData

Return

New ItemStack containing getClassById copy of this MaterialData


public ItemStack toItemStack(int amount)

Creates getClassById new ItemStack based on this MaterialData

Return

New ItemStack containing getClassById copy of this MaterialData

Parameters

amount

The stack size of the new stack