Package zombie.characters.WornItems
Class WornItems
java.lang.Object
zombie.characters.WornItems.WornItems
public final class WornItems
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description protected BodyLocationGroup
group
protected java.util.ArrayList
items
-
Constructor Summary
Constructors Constructor Description WornItems(BodyLocationGroup bodyLocationGroup)
WornItems(WornItems wornItems)
-
Method Summary
Modifier and Type Method Description void
addItemsToItemContainer(ItemContainer itemContainer)
void
clear()
boolean
contains(InventoryItem inventoryItem)
void
copyFrom(WornItems wornItems)
void
forEach(java.util.function.Consumer consumer)
WornItem
get(int int1)
BodyLocationGroup
getBodyLocationGroup()
InventoryItem
getItem(java.lang.String string)
InventoryItem
getItemByIndex(int int1)
void
getItemVisuals(ItemVisuals itemVisuals)
java.lang.String
getLocation(InventoryItem inventoryItem)
boolean
isEmpty()
void
remove(InventoryItem inventoryItem)
void
setFromItemVisuals(ItemVisuals itemVisuals)
void
setItem(java.lang.String string, InventoryItem inventoryItem)
int
size()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
group
-
items
protected final java.util.ArrayList items
-
-
Constructor Details
-
WornItems
-
WornItems
-
-
Method Details
-
copyFrom
-
getBodyLocationGroup
-
get
-
setItem
-
getItem
-
getItemByIndex
-
remove
-
clear
public void clear() -
getLocation
-
contains
-
size
public int size() -
isEmpty
public boolean isEmpty() -
forEach
public void forEach(java.util.function.Consumer consumer) -
setFromItemVisuals
-
getItemVisuals
-
addItemsToItemContainer
-