public class BaseItemStack extends BaseItem
This class may be removed in the future.
Constructor and Description |
---|
BaseItemStack(int id)
Construct the object with default stack size of one, with data value of 0.
|
BaseItemStack(int id,
int amount)
Construct the object.
|
BaseItemStack(int id,
int amount,
short data)
Construct the object.
|
Modifier and Type | Method and Description |
---|---|
int |
getAmount()
Get the number of items in the stack.
|
void |
setAmount(int amount)
Set the amount of items in the stack.
|
public BaseItemStack(int id)
id
- with data value of 0.public BaseItemStack(int id, int amount)
id
- type IDamount
- amount in the stackpublic BaseItemStack(int id, int amount, short data)
id
- type IDamount
- amount in the stackdata
- data value