Class InventoryItem

java.lang.Object
zombie.inventory.InventoryItem
Direct Known Subclasses:
AlarmClock, Clothing, ComboItem, DrainableComboItem, Food, HandWeapon, InventoryContainer, Key, KeyRing, Literature, Moveable, WeaponPart

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

    • previousOwner

      protected IsoGameCharacter previousOwner
    • ScriptItem

      protected Item ScriptItem
    • cat

      protected ItemType cat
    • consumeMenu

      protected java.lang.String consumeMenu
    • container

      protected ItemContainer container
    • containerX

      protected int containerX
    • containerY

      protected int containerY
    • DisappearOnUse

      protected boolean DisappearOnUse
    • name

      protected java.lang.String name
    • replaceOnUse

      protected java.lang.String replaceOnUse
    • ConditionMax

      protected int ConditionMax
    • rightClickContainer

      protected ItemContainer rightClickContainer
    • swingAnim

      protected java.lang.String swingAnim
    • texture

      protected Texture texture
    • texturerotten

      protected Texture texturerotten
    • textureCooked

      protected Texture textureCooked
    • textureBurnt

      protected Texture textureBurnt
    • type

      protected java.lang.String type
    • uses

      protected int uses
    • Age

      protected float Age
    • LastAged

      protected float LastAged
    • IsCookable

      protected boolean IsCookable
    • CookingTime

      protected float CookingTime
    • MinutesToCook

      protected float MinutesToCook
    • MinutesToBurn

      protected float MinutesToBurn
    • Cooked

      public boolean Cooked
    • Burnt

      protected boolean Burnt
    • OffAge

      protected int OffAge
    • OffAgeMax

      protected int OffAgeMax
    • Weight

      protected float Weight
    • ActualWeight

      protected float ActualWeight
    • WorldTexture

      protected java.lang.String WorldTexture
    • Description

      protected java.lang.String Description
    • Condition

      protected int Condition
    • OffString

      protected java.lang.String OffString
    • FreshString

      protected java.lang.String FreshString
    • CookedString

      protected java.lang.String CookedString
    • UnCookedString

      protected java.lang.String UnCookedString
    • FrozenString

      protected java.lang.String FrozenString
    • BurntString

      protected java.lang.String BurntString
    • module

      protected java.lang.String module
    • AlwaysWelcomeGift

      protected boolean AlwaysWelcomeGift
    • CanBandage

      protected boolean CanBandage
    • boredomChange

      protected float boredomChange
    • unhappyChange

      protected float unhappyChange
    • stressChange

      protected float stressChange
    • Taken

      protected java.util.ArrayList Taken
    • placeDir

      protected IsoDirections placeDir
    • newPlaceDir

      protected IsoDirections newPlaceDir
    • ReplaceOnUseOn

      public java.lang.String ReplaceOnUseOn
    • col

      public Color col
    • IsWaterSource

      public boolean IsWaterSource
    • CanStoreWater

      public boolean CanStoreWater
    • CanStack

      public boolean CanStack
    • fatigueChange

      public float fatigueChange
    • worldItem

      public IsoWorldInventoryObject worldItem
    • id

      public long id
    • RequiresEquippedBothHands

      public boolean RequiresEquippedBothHands
    • byteData

      public java.nio.ByteBuffer byteData
    • extraItems

      public java.util.ArrayList extraItems
    • alcoholic

      protected boolean alcoholic
    • requireInHandOrInventory

      protected java.util.ArrayList requireInHandOrInventory
    • keepOnDeplete

      public boolean keepOnDeplete
    • jobDelta

      public float jobDelta
    • jobType

      public java.lang.String jobType
    • mainCategory

      public java.lang.String mainCategory
    • CloseKillMove

      public java.lang.String CloseKillMove
  • Constructor Details

    • InventoryItem

      public InventoryItem​(java.lang.String string, java.lang.String string2, java.lang.String string3, java.lang.String string4)
    • InventoryItem

      public InventoryItem​(java.lang.String string, java.lang.String string2, java.lang.String string3, Item item)
  • Method Details

    • getSaveType

      public int getSaveType()
    • getWorldItem

      public IsoWorldInventoryObject getWorldItem()
    • setEquipParent

      public void setEquipParent​(IsoGameCharacter gameCharacter)
    • getEquipParent

      public IsoGameCharacter getEquipParent()
    • setWorldItem

      public void setWorldItem​(IsoWorldInventoryObject worldInventoryObject)
    • setJobDelta

      public void setJobDelta​(float float1)
    • getJobDelta

      public float getJobDelta()
    • setJobType

      public void setJobType​(java.lang.String string)
    • getJobType

      public java.lang.String getJobType()
    • hasModData

      public boolean hasModData()
    • getModData

      public KahluaTable getModData()
    • storeInByteData

      public void storeInByteData​(IsoObject object)
    • getByteData

      public java.nio.ByteBuffer getByteData()
    • isRequiresEquippedBothHands

      public boolean isRequiresEquippedBothHands()
    • getA

      public float getA()
    • getR

      public float getR()
    • getG

      public float getG()
    • getB

      public float getB()
    • getType

      public java.lang.String getType()
    • getTex

      public Texture getTex()
    • getCategory

      public java.lang.String getCategory()
    • IsRotten

      public boolean IsRotten()
    • HowRotten

      public float HowRotten()
    • CanStack

      public boolean CanStack​(InventoryItem inventoryItem)
    • ModDataMatches

      public boolean ModDataMatches​(InventoryItem inventoryItem)
    • DoTooltip

      public void DoTooltip​(ObjectTooltip objectTooltip)
    • DoTooltip

      public void DoTooltip​(ObjectTooltip objectTooltip, ObjectTooltip.Layout layout)
    • SetContainerPosition

      public void SetContainerPosition​(int int1, int int2)
    • Use

      public void Use()
    • UseItem

      public void UseItem()
    • Use

      public void Use​(boolean boolean1)
    • Use

      public void Use​(boolean boolean1, boolean boolean2)
    • Use

      public void Use​(IsoGameCharacter gameCharacter)
    • shouldUpdateInWorld

      public boolean shouldUpdateInWorld()
    • update

      public void update()
    • finishupdate

      public boolean finishupdate()
    • updateSound

      public void updateSound​(BaseSoundEmitter baseSoundEmitter)
    • getFullType

      public java.lang.String getFullType()
    • save

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

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

      public boolean IsFood()
    • IsWeapon

      public boolean IsWeapon()
    • IsDrainable

      public boolean IsDrainable()
    • IsLiterature

      public boolean IsLiterature()
    • IsClothing

      public boolean IsClothing()
    • getScore

      public float getScore​(SurvivorDesc survivorDesc)
    • getPreviousOwner

      public IsoGameCharacter getPreviousOwner()
    • setPreviousOwner

      public void setPreviousOwner​(IsoGameCharacter gameCharacter)
    • getScriptItem

      public Item getScriptItem()
    • setScriptItem

      public void setScriptItem​(Item item)
    • getCat

      public ItemType getCat()
    • setCat

      public void setCat​(ItemType itemType)
    • getConsumeMenu

      public java.lang.String getConsumeMenu()
    • setConsumeMenu

      public void setConsumeMenu​(java.lang.String string)
    • getContainer

      public ItemContainer getContainer()
    • setContainer

      public void setContainer​(ItemContainer itemContainer)
    • getOutermostContainer

      public ItemContainer getOutermostContainer()
    • isInLocalPlayerInventory

      public boolean isInLocalPlayerInventory()
    • isInPlayerInventory

      public boolean isInPlayerInventory()
    • getContainerX

      public int getContainerX()
    • setContainerX

      public void setContainerX​(int int1)
    • getContainerY

      public int getContainerY()
    • setContainerY

      public void setContainerY​(int int1)
    • isDisappearOnUse

      public boolean isDisappearOnUse()
    • setDisappearOnUse

      public void setDisappearOnUse​(boolean boolean1)
    • getName

      public java.lang.String getName()
    • setName

      public void setName​(java.lang.String string)
    • getReplaceOnUse

      public java.lang.String getReplaceOnUse()
    • setReplaceOnUse

      public void setReplaceOnUse​(java.lang.String string)
    • getConditionMax

      public int getConditionMax()
    • setConditionMax

      public void setConditionMax​(int int1)
    • getRightClickContainer

      public ItemContainer getRightClickContainer()
    • setRightClickContainer

      public void setRightClickContainer​(ItemContainer itemContainer)
    • getSwingAnim

      public java.lang.String getSwingAnim()
    • setSwingAnim

      public void setSwingAnim​(java.lang.String string)
    • getTexture

      public Texture getTexture()
    • setTexture

      public void setTexture​(Texture texture)
    • getTexturerotten

      public Texture getTexturerotten()
    • setTexturerotten

      public void setTexturerotten​(Texture texture)
    • getTextureCooked

      public Texture getTextureCooked()
    • setTextureCooked

      public void setTextureCooked​(Texture texture)
    • getTextureBurnt

      public Texture getTextureBurnt()
    • setTextureBurnt

      public void setTextureBurnt​(Texture texture)
    • setType

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

      public int getUses()
    • setUses

      public void setUses​(int int1)
    • getAge

      public float getAge()
    • setAge

      public void setAge​(float float1)
    • getLastAged

      public float getLastAged()
    • setLastAged

      public void setLastAged​(float float1)
    • updateAge

      public void updateAge()
    • setAutoAge

      public void setAutoAge()
    • isIsCookable

      public boolean isIsCookable()
    • setIsCookable

      public void setIsCookable​(boolean boolean1)
    • getCookingTime

      public float getCookingTime()
    • setCookingTime

      public void setCookingTime​(float float1)
    • getMinutesToCook

      public float getMinutesToCook()
    • setMinutesToCook

      public void setMinutesToCook​(float float1)
    • getMinutesToBurn

      public float getMinutesToBurn()
    • setMinutesToBurn

      public void setMinutesToBurn​(float float1)
    • isCooked

      public boolean isCooked()
    • setCooked

      public void setCooked​(boolean boolean1)
    • isBurnt

      public boolean isBurnt()
    • setBurnt

      public void setBurnt​(boolean boolean1)
    • getOffAge

      public int getOffAge()
    • setOffAge

      public void setOffAge​(int int1)
    • getOffAgeMax

      public int getOffAgeMax()
    • setOffAgeMax

      public void setOffAgeMax​(int int1)
    • getWeight

      public float getWeight()
    • setWeight

      public void setWeight​(float float1)
    • getActualWeight

      public float getActualWeight()
    • setActualWeight

      public void setActualWeight​(float float1)
    • getWorldTexture

      public java.lang.String getWorldTexture()
    • setWorldTexture

      public void setWorldTexture​(java.lang.String string)
    • getDescription

      public java.lang.String getDescription()
    • setDescription

      public void setDescription​(java.lang.String string)
    • getCondition

      public int getCondition()
    • setCondition

      public void setCondition​(int int1, boolean boolean1)
    • setCondition

      public void setCondition​(int int1)
    • getOffString

      public java.lang.String getOffString()
    • setOffString

      public void setOffString​(java.lang.String string)
    • getCookedString

      public java.lang.String getCookedString()
    • setCookedString

      public void setCookedString​(java.lang.String string)
    • getUnCookedString

      public java.lang.String getUnCookedString()
    • setUnCookedString

      public void setUnCookedString​(java.lang.String string)
    • getBurntString

      public java.lang.String getBurntString()
    • setBurntString

      public void setBurntString​(java.lang.String string)
    • getModule

      public java.lang.String getModule()
    • setModule

      public void setModule​(java.lang.String string)
    • isAlwaysWelcomeGift

      public boolean isAlwaysWelcomeGift()
    • setAlwaysWelcomeGift

      public void setAlwaysWelcomeGift​(boolean boolean1)
    • isCanBandage

      public boolean isCanBandage()
    • setCanBandage

      public void setCanBandage​(boolean boolean1)
    • getBoredomChange

      public float getBoredomChange()
    • setBoredomChange

      public void setBoredomChange​(float float1)
    • getUnhappyChange

      public float getUnhappyChange()
    • setUnhappyChange

      public void setUnhappyChange​(float float1)
    • getStressChange

      public float getStressChange()
    • setStressChange

      public void setStressChange​(float float1)
    • getTaken

      public java.util.ArrayList getTaken()
    • setTaken

      public void setTaken​(java.util.ArrayList arrayList)
    • getPlaceDir

      public IsoDirections getPlaceDir()
    • setPlaceDir

      public void setPlaceDir​(IsoDirections directions)
    • getNewPlaceDir

      public IsoDirections getNewPlaceDir()
    • setNewPlaceDir

      public void setNewPlaceDir​(IsoDirections directions)
    • setReplaceOnUseOn

      public void setReplaceOnUseOn​(java.lang.String string)
    • getReplaceOnUseOn

      public java.lang.String getReplaceOnUseOn()
    • getReplaceOnUseOnString

      public java.lang.String getReplaceOnUseOnString()
    • setIsWaterSource

      public void setIsWaterSource​(boolean boolean1)
    • isWaterSource

      public boolean isWaterSource()
    • CopyModData

      public void CopyModData​(KahluaTable kahluaTable)
    • getCount

      public int getCount()
    • setCount

      public void setCount​(int int1)
    • isActivated

      public boolean isActivated()
    • setActivated

      public void setActivated​(boolean boolean1)
    • setCanBeActivated

      public void setCanBeActivated​(boolean boolean1)
    • canBeActivated

      public boolean canBeActivated()
    • setLightStrength

      public void setLightStrength​(float float1)
    • getLightStrength

      public float getLightStrength()
    • isTorchCone

      public boolean isTorchCone()
    • setTorchCone

      public void setTorchCone​(boolean boolean1)
    • getLightDistance

      public int getLightDistance()
    • setLightDistance

      public void setLightDistance​(int int1)
    • canStoreWater

      public boolean canStoreWater()
    • getFatigueChange

      public float getFatigueChange()
    • setFatigueChange

      public void setFatigueChange​(float float1)
    • getCurrentCondition

      public float getCurrentCondition()
    • setColor

      public void setColor​(Color color)
    • getColor

      public Color getColor()
    • getColorInfo

      public ColorInfo getColorInfo()
    • isTwoHandWeapon

      public boolean isTwoHandWeapon()
    • setTwoHandWeapon

      public void setTwoHandWeapon​(boolean boolean1)
    • getCustomMenuOption

      public java.lang.String getCustomMenuOption()
    • setCustomMenuOption

      public void setCustomMenuOption​(java.lang.String string)
    • setTooltip

      public void setTooltip​(java.lang.String string)
    • getTooltip

      public java.lang.String getTooltip()
    • getDisplayCategory

      public java.lang.String getDisplayCategory()
    • setDisplayCategory

      public void setDisplayCategory​(java.lang.String string)
    • getHaveBeenRepaired

      public int getHaveBeenRepaired()
    • setHaveBeenRepaired

      public void setHaveBeenRepaired​(int int1)
    • isBroken

      public boolean isBroken()
    • setBroken

      public void setBroken​(boolean boolean1)
    • getReplaceOnBreak

      public java.lang.String getReplaceOnBreak()
    • setReplaceOnBreak

      public void setReplaceOnBreak​(java.lang.String string)
    • getDisplayName

      public java.lang.String getDisplayName()
    • setTrap

      public void setTrap​(java.lang.Boolean Boolean1)
    • isTrap

      public boolean isTrap()
    • addExtraItem

      public void addExtraItem​(java.lang.String string)
    • haveExtraItems

      public boolean haveExtraItems()
    • getExtraItems

      public java.util.ArrayList getExtraItems()
    • isCustomName

      public boolean isCustomName()
    • setCustomName

      public void setCustomName​(boolean boolean1)
    • isFishingLure

      public boolean isFishingLure()
    • setFishingLure

      public void setFishingLure​(boolean boolean1)
    • copyConditionModData

      public void copyConditionModData​(InventoryItem inventoryItem)
    • setConditionFromModData

      public void setConditionFromModData​(InventoryItem inventoryItem)
    • getBreakSound

      public java.lang.String getBreakSound()
    • setBreakSound

      public void setBreakSound​(java.lang.String string)
    • setBeingFilled

      public void setBeingFilled​(boolean boolean1)
    • isBeingFilled

      public boolean isBeingFilled()
    • isAlcoholic

      public boolean isAlcoholic()
    • setAlcoholic

      public void setAlcoholic​(boolean boolean1)
    • getAlcoholPower

      public float getAlcoholPower()
    • setAlcoholPower

      public void setAlcoholPower​(float float1)
    • getBandagePower

      public float getBandagePower()
    • setBandagePower

      public void setBandagePower​(float float1)
    • getReduceInfectionPower

      public float getReduceInfectionPower()
    • setReduceInfectionPower

      public void setReduceInfectionPower​(float float1)
    • saveWithSize

      public final void saveWithSize​(java.nio.ByteBuffer byteBuffer, boolean boolean1) throws java.io.IOException
      Throws:
      java.io.IOException
    • isCustomWeight

      public boolean isCustomWeight()
    • setCustomWeight

      public void setCustomWeight​(boolean boolean1)
    • getContentsWeight

      public float getContentsWeight()
    • getEquippedWeight

      public float getEquippedWeight()
    • getUnequippedWeight

      public float getUnequippedWeight()
    • isEquipped

      public boolean isEquipped()
    • getKeyId

      public int getKeyId()
    • setKeyId

      public void setKeyId​(int int1)
    • isTaintedWater

      public boolean isTaintedWater()
    • setTaintedWater

      public void setTaintedWater​(boolean boolean1)
    • isRemoteController

      public boolean isRemoteController()
    • setRemoteController

      public void setRemoteController​(boolean boolean1)
    • canBeRemote

      public boolean canBeRemote()
    • setCanBeRemote

      public void setCanBeRemote​(boolean boolean1)
    • getRemoteControlID

      public int getRemoteControlID()
    • setRemoteControlID

      public void setRemoteControlID​(int int1)
    • getRemoteRange

      public int getRemoteRange()
    • setRemoteRange

      public void setRemoteRange​(int int1)
    • getExplosionSound

      public java.lang.String getExplosionSound()
    • setExplosionSound

      public void setExplosionSound​(java.lang.String string)
    • getCountDownSound

      public java.lang.String getCountDownSound()
    • setCountDownSound

      public void setCountDownSound​(java.lang.String string)
    • getColorRed

      public float getColorRed()
    • setColorRed

      public void setColorRed​(float float1)
    • getColorGreen

      public float getColorGreen()
    • setColorGreen

      public void setColorGreen​(float float1)
    • getColorBlue

      public float getColorBlue()
    • setColorBlue

      public void setColorBlue​(float float1)
    • getEvolvedRecipeName

      public java.lang.String getEvolvedRecipeName()
    • setEvolvedRecipeName

      public void setEvolvedRecipeName​(java.lang.String string)
    • getMetalValue

      public float getMetalValue()
    • setMetalValue

      public void setMetalValue​(float float1)
    • getItemHeat

      public float getItemHeat()
    • setItemHeat

      public void setItemHeat​(float float1)
    • getInvHeat

      public float getInvHeat()
    • getMeltingTime

      public float getMeltingTime()
    • setMeltingTime

      public void setMeltingTime​(float float1)
    • getWorker

      public java.lang.String getWorker()
    • setWorker

      public void setWorker​(java.lang.String string)
    • getID

      public long getID()
    • setID

      public void setID​(long long1)
    • isWet

      public boolean isWet()
    • setWet

      public void setWet​(boolean boolean1)
    • getWetCooldown

      public float getWetCooldown()
    • setWetCooldown

      public void setWetCooldown​(float float1)
    • getItemWhenDry

      public java.lang.String getItemWhenDry()
    • setItemWhenDry

      public void setItemWhenDry​(java.lang.String string)
    • isFavorite

      public boolean isFavorite()
    • setFavorite

      public void setFavorite​(boolean boolean1)
    • getRequireInHandOrInventory

      public java.util.ArrayList getRequireInHandOrInventory()
    • setRequireInHandOrInventory

      public void setRequireInHandOrInventory​(java.util.ArrayList arrayList)
    • isCustomColor

      public boolean isCustomColor()
    • setCustomColor

      public void setCustomColor​(boolean boolean1)
    • getMap

      public java.lang.String getMap()
    • setMap

      public void setMap​(java.lang.String string)
    • doBuildingtStash

      public void doBuildingtStash()
    • setStashMap

      public void setStashMap​(java.lang.String string)
    • getMechanicType

      public int getMechanicType()
    • setMechanicType

      public void setMechanicType​(int int1)
    • getItemCapacity

      public float getItemCapacity()
    • setItemCapacity

      public void setItemCapacity​(float float1)
    • getMaxCapacity

      public int getMaxCapacity()
    • setMaxCapacity

      public void setMaxCapacity​(int int1)
    • isConditionAffectsCapacity

      public boolean isConditionAffectsCapacity()
    • getBrakeForce

      public float getBrakeForce()
    • setBrakeForce

      public void setBrakeForce​(float float1)
    • getChanceToSpawnDamaged

      public int getChanceToSpawnDamaged()
    • setChanceToSpawnDamaged

      public void setChanceToSpawnDamaged​(int int1)
    • getConditionLowerNormal

      public float getConditionLowerNormal()
    • setConditionLowerNormal

      public void setConditionLowerNormal​(float float1)
    • getConditionLowerOffroad

      public float getConditionLowerOffroad()
    • setConditionLowerOffroad

      public void setConditionLowerOffroad​(float float1)
    • getWheelFriction

      public float getWheelFriction()
    • setWheelFriction

      public void setWheelFriction​(float float1)
    • getSuspensionDamping

      public float getSuspensionDamping()
    • setSuspensionDamping

      public void setSuspensionDamping​(float float1)
    • getSuspensionCompression

      public float getSuspensionCompression()
    • setSuspensionCompression

      public void setSuspensionCompression​(float float1)
    • setInfected

      public void setInfected​(boolean boolean1)
    • isInfected

      public boolean isInfected()
    • getEngineLoudness

      public float getEngineLoudness()
    • setEngineLoudness

      public void setEngineLoudness​(float float1)