|
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of Item.Type in <Unnamed> |
---|
Modifier and Type | Field and Description |
---|---|
Item.Type |
Item.itemType
|
Modifier and Type | Method and Description |
---|---|
static Item.Type |
Item.Type.fromId(int id)
|
Item.Type |
Item.getType()
Returns this item type |
static Item.Type |
Item.Type.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Item.Type[] |
Item.Type.values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Modifier and Type | Method and Description |
---|---|
Item |
Inventory.getItemFromId(Item.Type type)
|
Item |
ItemArray.getItemFromId(Item.Type type)
Retrieves from the slot |
Item |
Inventory.getItemFromId(Item.Type type,
int maxAmount)
|
Item |
ItemArray.getItemFromId(Item.Type type,
int maxAmount)
Retrieves from the slot |
boolean |
Inventory.hasItem(Item.Type type)
|
boolean |
ItemArray.hasItem(Item.Type type)
Checks to see if this getArray() has one slot that has the given item type |
boolean |
Inventory.hasItem(Item.Type type,
int minimum)
|
boolean |
ItemArray.hasItem(Item.Type type,
int minimum)
Checks to see if this getArray() has one slot that has the item id and equal or more to the amount. |
void |
Inventory.removeItem(Item.Type type,
int amount)
|
void |
ItemArray.removeItem(Item.Type type,
int amount)
Removes the item. |
void |
Inventory.setSlot(Item.Type type,
int amount,
int slot)
|
void |
ItemArray.setSlot(Item.Type type,
int amount,
int slot)
Replaces the slot with the specified item. |
void |
Item.setType(Item.Type itemType)
Set the item type |
Constructor and Description |
---|
Item(Item.Type itemType)
Create a new item. |
Item(Item.Type itemType,
int amount)
|
|
|||||||||
PREV NEXT | FRAMES NO FRAMES |