|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
boolean |
add(Item item)
Adds an item to this container |
boolean |
canHold(Item item)
Checks if this container can hold the specified item |
boolean |
contains(Item item)
Checks if this container contains this item |
Dimension3D |
getContainerDimension()
Gets the total volume of the container |
int |
getContainerWeight()
Gets the total weight of the container |
int |
getFreeSpecializationSlots()
Gets the number of free slots |
int |
getFreeVolume()
Gets the total free volume of the inventory |
javax.swing.tree.DefaultMutableTreeNode |
getTreeNode()
Gets the treenode of the containing item |
boolean |
isSpecialization(Item item)
Checks if an item is a specialization of this container |
boolean |
remove(Item item)
Removes an item from this container |
Method Detail |
public Dimension3D getContainerDimension()
public int getFreeSpecializationSlots()
public boolean isSpecialization(Item item)
item
- The item to checkpublic boolean contains(Item item)
item
- The item to check for
public boolean add(Item item)
item
- The item to add
public boolean remove(Item item)
item
- The item to remove
public boolean canHold(Item item)
item
- The item to check against
public int getFreeVolume()
public int getContainerWeight()
public javax.swing.tree.DefaultMutableTreeNode getTreeNode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |