Class ItemContainer

java.lang.Object
zombie.inventory.ItemContainer

public class ItemContainer
extends java.lang.Object
  • Field Details

    • active

      public boolean active
    • dirty

      public boolean dirty
    • IsDevice

      public boolean IsDevice
    • ageFactor

      public float ageFactor
    • CookingFactor

      public float CookingFactor
    • Capacity

      public int Capacity
    • containingItem

      public InventoryItem containingItem
    • Items

      public java.util.ArrayList Items
    • IncludingObsoleteItems

      public java.util.ArrayList IncludingObsoleteItems
    • parent

      public IsoObject parent
    • SourceGrid

      public IsoGridSquare SourceGrid
    • vehiclePart

      public VehiclePart vehiclePart
    • inventoryContainer

      public InventoryContainer inventoryContainer
    • bExplored

      public boolean bExplored
    • type

      public java.lang.String type
    • ID

      public int ID
  • Constructor Details

    • ItemContainer

      public ItemContainer​(int int1, java.lang.String string, IsoGridSquare square, IsoObject object, int int2, int int3)
    • ItemContainer

      public ItemContainer​(java.lang.String string, IsoGridSquare square, IsoObject object, int int1, int int2)
    • ItemContainer

      public ItemContainer​(int int1)
    • ItemContainer

      public ItemContainer()
  • Method Details

    • getCapacity

      public int getCapacity()
    • FindAndReturnWaterItem

      public InventoryItem FindAndReturnWaterItem​(int int1)
    • getEffectiveCapacity

      public int getEffectiveCapacity​(IsoGameCharacter gameCharacter)
    • setExplored

      public void setExplored​(boolean boolean1)
    • hasRoomFor

      public boolean hasRoomFor​(IsoGameCharacter gameCharacter, InventoryItem inventoryItem)
    • hasRoomFor

      public boolean hasRoomFor​(IsoGameCharacter gameCharacter, float float1)
    • isExplored

      public boolean isExplored()
    • isInCharacterInventory

      public boolean isInCharacterInventory​(IsoGameCharacter gameCharacter)
    • isInside

      public boolean isInside​(InventoryItem inventoryItem)
    • getContainingItem

      public InventoryItem getContainingItem()
    • DoAddItem

      public InventoryItem DoAddItem​(InventoryItem inventoryItem)
    • DoAddItemBlind

      public InventoryItem DoAddItemBlind​(InventoryItem inventoryItem)
    • AddItems

      public java.util.ArrayList AddItems​(java.lang.String string, int int1)
    • AddItems

      public void AddItems​(InventoryItem inventoryItem, int int1)
    • getNumberOfItem

      public int getNumberOfItem​(java.lang.String string, boolean boolean1)
    • getNumberOfItem

      public int getNumberOfItem​(java.lang.String string)
    • getNumberOfItem

      public int getNumberOfItem​(java.lang.String string, boolean boolean1, java.util.ArrayList arrayList)
    • getNumberOfItem

      public int getNumberOfItem​(java.lang.String string, boolean boolean1, boolean boolean2)
    • addItem

      public InventoryItem addItem​(InventoryItem inventoryItem)
    • AddItem

      public InventoryItem AddItem​(InventoryItem inventoryItem)
    • AddItemBlind

      public InventoryItem AddItemBlind​(InventoryItem inventoryItem)
    • AddItem

      public InventoryItem AddItem​(java.lang.String string)
    • AddItem

      public boolean AddItem​(java.lang.String string, float float1)
    • contains

      public boolean contains​(InventoryItem inventoryItem)
    • containsWithModule

      public boolean containsWithModule​(java.lang.String string)
    • containsWithModule

      public boolean containsWithModule​(java.lang.String string, boolean boolean1)
    • removeItemOnServer

      public void removeItemOnServer​(InventoryItem inventoryItem)
    • addItemOnServer

      public void addItemOnServer​(InventoryItem inventoryItem)
    • contains

      public boolean contains​(InventoryItem inventoryItem, boolean boolean1)
    • contains

      public boolean contains​(java.lang.String string, boolean boolean1)
    • contains

      public boolean contains​(java.lang.String string, boolean boolean1, boolean boolean2)
    • contains

      public boolean contains​(java.lang.String string)
    • getBestCondition

      public InventoryItem getBestCondition​(java.lang.String string)
    • FindAndReturnCategory

      public InventoryItem FindAndReturnCategory​(java.lang.String string)
    • FindAndReturn

      public java.util.ArrayList FindAndReturn​(java.lang.String string, int int1)
    • FindAndReturn

      public InventoryItem FindAndReturn​(java.lang.String string, java.util.ArrayList arrayList)
    • FindAndReturn

      public InventoryItem FindAndReturn​(java.lang.String string)
    • FindAll

      public java.util.ArrayList FindAll​(java.lang.String string)
    • FindAndReturnStack

      public InventoryItem FindAndReturnStack​(java.lang.String string)
    • FindAndReturnStack

      public InventoryItem FindAndReturnStack​(InventoryItem inventoryItem)
    • HasType

      public boolean HasType​(ItemType itemType)
    • Remove

      public void Remove​(InventoryItem inventoryItem)
    • DoRemoveItem

      public void DoRemoveItem​(InventoryItem inventoryItem)
    • Remove

      public void Remove​(java.lang.String string)
    • Remove

      public InventoryItem Remove​(ItemType itemType)
    • Find

      public InventoryItem Find​(ItemType itemType)
    • RemoveAll

      public void RemoveAll​(java.lang.String string)
    • RemoveOneOf

      public boolean RemoveOneOf​(java.lang.String string, boolean boolean1)
    • RemoveOneOf

      public void RemoveOneOf​(java.lang.String string)
    • getWeight

      public int getWeight()
    • getContentsWeight

      public float getContentsWeight()
    • getMaxWeight

      public float getMaxWeight()
    • getCapacityWeight

      public float getCapacityWeight()
    • isEmpty

      public boolean isEmpty()
    • isPowered

      public boolean isPowered()
    • getTemprature

      public float getTemprature()
    • isTemperatureChanging

      public boolean isTemperatureChanging()
    • save

      public java.util.ArrayList save​(java.nio.ByteBuffer byteBuffer, boolean boolean1, IsoGameCharacter gameCharacter) throws java.io.IOException
      Throws:
      java.io.IOException
    • save

      public java.util.ArrayList save​(java.nio.ByteBuffer byteBuffer, boolean boolean1) throws java.io.IOException
      Throws:
      java.io.IOException
    • load

      public java.util.ArrayList load​(java.nio.ByteBuffer byteBuffer, int int1, boolean boolean1) throws java.io.IOException
      Throws:
      java.io.IOException
    • isDrawDirty

      public boolean isDrawDirty()
    • setDrawDirty

      public void setDrawDirty​(boolean boolean1)
    • getBestWeapon

      public InventoryItem getBestWeapon​(SurvivorDesc survivorDesc)
    • getBestWeapon

      public InventoryItem getBestWeapon()
    • getTotalFoodScore

      public float getTotalFoodScore​(SurvivorDesc survivorDesc)
    • getTotalWeaponScore

      public float getTotalWeaponScore​(SurvivorDesc survivorDesc)
    • getBestFood

      public InventoryItem getBestFood​(SurvivorDesc survivorDesc)
    • getBestBandage

      public InventoryItem getBestBandage​(SurvivorDesc survivorDesc)
    • getNumItems

      public int getNumItems​(java.lang.String string)
    • isActive

      public boolean isActive()
    • setActive

      public void setActive​(boolean boolean1)
    • isDirty

      public boolean isDirty()
    • setDirty

      public void setDirty​(boolean boolean1)
    • isIsDevice

      public boolean isIsDevice()
    • setIsDevice

      public void setIsDevice​(boolean boolean1)
    • getAgeFactor

      public float getAgeFactor()
    • setAgeFactor

      public void setAgeFactor​(float float1)
    • getCookingFactor

      public float getCookingFactor()
    • setCookingFactor

      public void setCookingFactor​(float float1)
    • getItems

      public java.util.ArrayList getItems()
    • setItems

      public void setItems​(java.util.ArrayList arrayList)
    • getParent

      public IsoObject getParent()
    • setParent

      public void setParent​(IsoObject object)
    • getSourceGrid

      public IsoGridSquare getSourceGrid()
    • setSourceGrid

      public void setSourceGrid​(IsoGridSquare square)
    • getType

      public java.lang.String getType()
    • setType

      public void setType​(java.lang.String string)
    • clear

      public void clear()
    • getWaterContainerCount

      public int getWaterContainerCount()
    • FindWaterSource

      public InventoryItem FindWaterSource()
    • getAllWaterFillables

      public java.util.ArrayList getAllWaterFillables()
    • getItemCount

      public int getItemCount​(java.lang.String string)
    • getItemCount

      public int getItemCount​(java.lang.String string, boolean boolean1)
    • setWeightReduction

      public void setWeightReduction​(int int1)
    • getWeightReduction

      public int getWeightReduction()
    • doLoad

      public boolean doLoad()
    • doLoadActual

      public boolean doLoadActual() throws java.io.FileNotFoundException, java.io.IOException
      Throws:
      java.io.FileNotFoundException
      java.io.IOException
    • removeAllItems

      public void removeAllItems()
    • setCustomTemperature

      public void setCustomTemperature​(float float1)
    • getCustomTemperature

      public float getCustomTemperature()
    • getItemFromType

      public InventoryItem getItemFromType​(java.lang.String string, IsoGameCharacter gameCharacter, boolean boolean1, boolean boolean2, boolean boolean3)
    • getItemFromType

      public InventoryItem getItemFromType​(java.lang.String string, boolean boolean1, boolean boolean2)
    • getItemFromType

      public InventoryItem getItemFromType​(java.lang.String string)
    • getItemsFromType

      public java.util.ArrayList getItemsFromType​(java.lang.String string)
    • getItemsFromFullType

      public java.util.ArrayList getItemsFromFullType​(java.lang.String string)
    • getItemsFromFullType

      public java.util.ArrayList getItemsFromFullType​(java.lang.String string, boolean boolean1)
    • getItemsFromType

      public java.util.ArrayList getItemsFromType​(java.lang.String string, boolean boolean1)
    • getItemsFromCategory

      public java.util.ArrayList getItemsFromCategory​(java.lang.String string)
    • sendContentsToRemoteContainer

      public void sendContentsToRemoteContainer()
    • requestSync

      public void requestSync()
    • requestServerItemsForContainer

      public void requestServerItemsForContainer()
    • sendContentsToRemoteContainer

      @Deprecated public void sendContentsToRemoteContainer​(UdpConnection udpConnection)
      Deprecated.
    • getItemWithIDRecursiv

      public InventoryItem getItemWithIDRecursiv​(long long1)
    • getItemWithID

      public InventoryItem getItemWithID​(long long1)
    • removeItemWithID

      public boolean removeItemWithID​(long long1)
    • containsID

      public boolean containsID​(long long1)
    • removeItemWithIDRecurse

      public boolean removeItemWithIDRecurse​(long long1)
    • isHasBeenLooted

      public boolean isHasBeenLooted()
    • setHasBeenLooted

      public void setHasBeenLooted​(boolean boolean1)
    • getOpenSound

      public java.lang.String getOpenSound()
    • setOpenSound

      public void setOpenSound​(java.lang.String string)
    • getCloseSound

      public java.lang.String getCloseSound()
    • setCloseSound

      public void setCloseSound​(java.lang.String string)
    • getPutSound

      public java.lang.String getPutSound()
    • setPutSound

      public void setPutSound​(java.lang.String string)
    • haveThisKeyId

      public InventoryItem haveThisKeyId​(int int1)
    • getOnlyAcceptCategory

      public java.lang.String getOnlyAcceptCategory()
    • setOnlyAcceptCategory

      public void setOnlyAcceptCategory​(java.lang.String string)
    • getCharacter

      public IsoGameCharacter getCharacter()
    • emptyIt

      public void emptyIt()
    • getItems4Admin

      public java.util.LinkedHashMap getItems4Admin()
    • getAllItems

      public java.util.LinkedHashMap getAllItems​(java.util.LinkedHashMap linkedHashMap, boolean boolean1)
    • getItemById

      public InventoryItem getItemById​(long long1)
    • floatingPointCorrection

      public static float floatingPointCorrection​(float float1)
    • addItemsToProcessItems

      public void addItemsToProcessItems()
    • removeItemsFromProcessItems

      public void removeItemsFromProcessItems()
    • isExistYet

      public boolean isExistYet()