setType

public void setType(@Nonnull() Material type)

Sets the type of this item

Note that in doing so you will reset the MaterialData for this stack

Parameters

type

New type to set the items in this stack to