public class CraftingManager.Item
extends java.lang.Object
Constructor and Description |
---|
CraftingManager.Item(java.lang.Class item,
int quantity)
Creates a pair between an item and a specific quantity.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int quantity)
Adds the given quantity to this item instance.
|
boolean |
equals(CraftingManager.Item other) |
java.lang.Class |
getItem()
Gets the item class held by this instance.
|
int |
getQuantity()
Gets the quantity of the item.
|
void |
setItem(java.lang.Class item)
Sets the item class held by this instance.
|
void |
setQuantity(int quantity)
Sets the quantity of the item.
|
java.lang.String |
toString() |
public CraftingManager.Item(java.lang.Class item, int quantity)
public void add(int quantity)
public boolean equals(CraftingManager.Item other)
public java.lang.Class getItem()
public void setItem(java.lang.Class item)
public int getQuantity()
public void setQuantity(int quantity)
public java.lang.String toString()
toString
in class java.lang.Object