Class InventoryItem

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

public class InventoryItem extends GameEntity
  • Field Details

    • cooked

      public boolean cooked
    • replaceOnUseOn

      public String replaceOnUseOn
    • col

      public Color col
    • canStack

      public boolean canStack
    • fatigueChange

      public float fatigueChange
    • worldItem

      public IsoWorldInventoryObject worldItem
    • deadBodyObject

      public IsoDeadBody deadBodyObject
    • id

      public int id
    • requiresEquippedBothHands

      public boolean requiresEquippedBothHands
    • byteData

      public ByteBuffer byteData
    • extraItems

      public ArrayList<String> extraItems
    • worldScale

      public float worldScale
    • worldXRotation

      public float worldXRotation
    • worldYRotation

      public float worldYRotation
    • worldZRotation

      public float worldZRotation
    • worldAlpha

      public float worldAlpha
    • atlasTexture

      public WorldItemAtlas.ItemTexture atlasTexture
    • jobDelta

      public float jobDelta
    • jobType

      public String jobType
    • mainCategory

      public String mainCategory
    • closeKillMove

      public String closeKillMove
  • Constructor Details

  • Method Details

    • getCoverType

      public CoverType getCoverType()
    • getBookSubjects

      public List<BookSubject> getBookSubjects()
    • getMagazineSubjects

      public List<MagazineSubject> getMagazineSubjects()
    • getWorldItem

      public IsoWorldInventoryObject getWorldItem()
    • setEquipParent

      public void setEquipParent(IsoGameCharacter parent)
    • setEquipParent

      public void setEquipParent(IsoGameCharacter parent, boolean register)
    • getEquipParent

      public IsoGameCharacter getEquipParent()
    • getBringToBearSound

      public String getBringToBearSound()
    • getAimReleaseSound

      public String getAimReleaseSound()
    • getEquipSound

      public String getEquipSound()
    • getUnequipSound

      public String getUnequipSound()
    • getDropSound

      public String getDropSound()
    • setWorldItem

      public void setWorldItem(IsoWorldInventoryObject w)
    • setJobDelta

      public void setJobDelta(float delta)
    • getJobDelta

      public float getJobDelta()
    • setJobType

      public void setJobType(String type)
    • getJobType

      public String getJobType()
    • hasModData

      public boolean hasModData()
    • getModData

      public se.krka.kahlua.vm.KahluaTable getModData()
    • storeInByteData

      public void storeInByteData(IsoObject o)
    • getByteData

      public ByteBuffer getByteData()
    • loadCorpseFromByteData

      public IsoDeadBody loadCorpseFromByteData(IsoGridSquare square)
    • isForceDropHeavyItem

      public boolean isForceDropHeavyItem()
    • isHumanCorpse

      public boolean isHumanCorpse()
    • isAnimalCorpse

      public boolean isAnimalCorpse()
    • createAndStoreDefaultDeadBody

      public IsoDeadBody createAndStoreDefaultDeadBody(IsoGridSquare square)
    • isRequiresEquippedBothHands

      public boolean isRequiresEquippedBothHands()
    • getA

      public float getA()
    • getR

      public float getR()
    • getG

      public float getG()
    • getB

      public float getB()
    • getType

      public String getType()
    • getTex

      public Texture getTex()
    • getCategory

      public String getCategory()
    • UseForCrafting

      public boolean UseForCrafting(int uses)
    • IsRotten

      public boolean IsRotten()
    • HowRotten

      public float HowRotten()
    • CanStack

      public boolean CanStack(InventoryItem item)
    • ModDataMatches

      public boolean ModDataMatches(InventoryItem item)
    • DoTooltip

      public void DoTooltip(ObjectTooltip tooltipUI)
    • DoTooltipEmbedded

      public void DoTooltipEmbedded(ObjectTooltip tooltipUI, ObjectTooltip.Layout layoutOverride, int offsetY)
    • getCleanString

      public String getCleanString(float weight)
    • DoTooltip

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

      public void SetContainerPosition(int x, int y)
    • Use

      public void Use()
    • UseAndSync

      public void UseAndSync()
    • UseItem

      public void UseItem()
    • Use

      public void Use(boolean bCrafting)
    • Use

      public void Use(boolean bCrafting, boolean bInContainer, boolean bNeedSync)
    • shouldUpdateInWorld

      public boolean shouldUpdateInWorld()
    • update

      public void update()
    • finishupdate

      public boolean finishupdate()
    • updateSound

      public void updateSound(BaseSoundEmitter emitter)
    • updateEquippedAndActivatedSound

      public void updateEquippedAndActivatedSound(BaseSoundEmitter emitter)
    • updateEquippedAndActivatedSound

      public void updateEquippedAndActivatedSound()
    • playActivateSound

      public void playActivateSound()
    • playDeactivateSound

      public void playDeactivateSound()
    • playActivateDeactivateSound

      public void playActivateDeactivateSound()
    • is

      public boolean is(ItemKey... item)
    • getFullType

      public String getFullType()
    • save

      public void save(ByteBuffer output, boolean net) throws IOException
      Throws:
      IOException
    • loadItem

      public static InventoryItem loadItem(ByteBuffer input, int WorldVersion) throws IOException
      Throws:
      IOException
    • loadItem

      public static InventoryItem loadItem(ByteBuffer input, int WorldVersion, boolean doSaveTypeCheck) throws IOException
      Attempts loading the item including creation, uppon failure bytes might be skipped or the buffer position may be set to end item position. Item needs to be saved with size.
      Returns:
      InventoryItem, or null if the item failed loading or if Creating the item failed due to being obsolete etc.
      Throws:
      IOException
    • loadItem

      public static InventoryItem loadItem(ByteBuffer input, int WorldVersion, boolean doSaveTypeCheck, InventoryItem i) throws IOException
      Throws:
      IOException
    • load

      public void load(ByteBuffer input, int WorldVersion) throws IOException
      Throws:
      IOException
    • createCloneItem

      public InventoryItem createCloneItem()
    • IsFood

      public boolean IsFood()
    • IsWeapon

      public boolean IsWeapon()
    • IsDrainable

      public boolean IsDrainable()
    • IsLiterature

      public boolean IsLiterature()
    • IsClothing

      public boolean IsClothing()
    • IsInventoryContainer

      public boolean IsInventoryContainer()
    • IsMap

      public boolean IsMap()
    • getOutermostContainer

      public ItemContainer getOutermostContainer()
    • isInLocalPlayerInventory

      public boolean isInLocalPlayerInventory()
    • isInPlayerInventory

      public boolean isInPlayerInventory()
    • getItemReplacementPrimaryHand

      public ItemReplacement getItemReplacementPrimaryHand()
    • getItemReplacementSecondHand

      public ItemReplacement getItemReplacementSecondHand()
    • getClothingItem

      public ClothingItem getClothingItem()
    • getAlternateModelName

      public String getAlternateModelName()
    • getVisual

      public ItemVisual getVisual()
    • allowRandomTint

      public boolean allowRandomTint()
    • synchWithVisual

      public void synchWithVisual()
    • getContainerX

      public int getContainerX()
      Returns:
      the containerX
    • setContainerX

      public void setContainerX(int containerX)
      Parameters:
      containerX - the containerX to set
    • getContainerY

      public int getContainerY()
      Returns:
      the containerY
    • setContainerY

      public void setContainerY(int containerY)
      Parameters:
      containerY - the containerY to set
    • isDisappearOnUse

      public boolean isDisappearOnUse()
      Returns:
      the DisappearOnUse
    • isKeepOnDeplete

      public boolean isKeepOnDeplete()
    • getName

      public String getName()
      Returns:
      the name
    • getName

      public String getName(IsoPlayer player)
    • setName

      public void setName(String name)
      Parameters:
      name - the name to set
    • getReplaceOnUse

      public String getReplaceOnUse()
      Returns:
      the replaceOnUse
    • setReplaceOnUse

      public void setReplaceOnUse(String replaceOnUse)
      Parameters:
      replaceOnUse - the replaceOnUse to set
    • getReplaceOnUseFullType

      public String getReplaceOnUseFullType()
    • getConditionMax

      public int getConditionMax()
      Returns:
      the ConditionMax
    • setConditionMax

      public void setConditionMax(int ConditionMax)
      Parameters:
      ConditionMax - the ConditionMax to set
    • getRightClickContainer

      public ItemContainer getRightClickContainer()
      Returns:
      the rightClickContainer
    • setRightClickContainer

      public void setRightClickContainer(ItemContainer rightClickContainer)
      Parameters:
      rightClickContainer - the rightClickContainer to set
    • getSwingAnim

      public String getSwingAnim()
      Returns:
      the swingAnim
    • getTexture

      public Texture getTexture()
      Returns:
      the texture
    • getIcon

      public Texture getIcon()
    • setTexture

      public void setTexture(Texture texture)
      Parameters:
      texture - the texture to set
    • setIcon

      public void setIcon(Texture texture)
    • getTexturerotten

      public Texture getTexturerotten()
      Returns:
      the texturerotten
    • setTexturerotten

      public void setTexturerotten(Texture texturerotten)
      Parameters:
      texturerotten - the texturerotten to set
    • getTextureCooked

      public Texture getTextureCooked()
      Returns:
      the textureCooked
    • setTextureCooked

      public void setTextureCooked(Texture textureCooked)
      Parameters:
      textureCooked - the textureCooked to set
    • getTextureBurnt

      public Texture getTextureBurnt()
      Returns:
      the textureBurnt
    • setTextureBurnt

      public void setTextureBurnt(Texture textureBurnt)
      Parameters:
      textureBurnt - the textureBurnt to set
    • setType

      public void setType(String type)
      Parameters:
      type - the type to set
    • setCurrentUses

      public void setCurrentUses(int newuses)
    • getCurrentUses

      public int getCurrentUses()
    • setCurrentUsesFrom

      public void setCurrentUsesFrom(InventoryItem other)
    • getMaxUses

      public int getMaxUses()
    • getCurrentUsesFloat

      public float getCurrentUsesFloat()
    • setCurrentUsesFloat

      public void setCurrentUsesFloat(float newUses)
    • getUseDelta

      public float getUseDelta()
    • setUseDelta

      public void setUseDelta(float useDelta)
    • getUses

      @Deprecated public int getUses()
      Deprecated.
      Returns:
      the uses
    • setUses

      @Deprecated public void setUses(int newuses)
      Deprecated.
      Parameters:
      newuses - the uses to set
    • setUsesFrom

      public void setUsesFrom(InventoryItem other)
    • getAge

      public float getAge()
      Returns:
      the Age
    • setAge

      public void setAge(float Age)
      Parameters:
      Age - the Age to set
    • getLastAged

      public float getLastAged()
    • setLastAged

      public void setLastAged(float time)
    • updateAge

      public void updateAge()
    • setAutoAge

      public void setAutoAge()
    • isIsCookable

      public boolean isIsCookable()
      Returns:
      the IsCookable
    • isCookable

      public boolean isCookable()
      Returns:
      the IsCookable
    • setIsCookable

      public void setIsCookable(boolean IsCookable)
      Parameters:
      IsCookable - the IsCookable to set
    • getCookingTime

      public float getCookingTime()
      Returns:
      the CookingTime
    • setCookingTime

      public void setCookingTime(float CookingTime)
      Parameters:
      CookingTime - the CookingTime to set
    • getMinutesToCook

      public float getMinutesToCook()
      Returns:
      the MinutesToCook
    • setMinutesToCook

      public void setMinutesToCook(float MinutesToCook)
      Parameters:
      MinutesToCook - the MinutesToCook to set
    • getMinutesToBurn

      public float getMinutesToBurn()
      Returns:
      the MinutesToBurn
    • setMinutesToBurn

      public void setMinutesToBurn(float MinutesToBurn)
      Parameters:
      MinutesToBurn - the MinutesToBurn to set
    • isCooked

      public boolean isCooked()
      Returns:
      the Cooked
    • setCooked

      public void setCooked(boolean Cooked)
      Parameters:
      Cooked - the Cooked to set
    • isBurnt

      public boolean isBurnt()
      Returns:
      the Burnt
    • setBurnt

      public void setBurnt(boolean Burnt)
      Parameters:
      Burnt - the Burnt to set
    • getOffAge

      public int getOffAge()
      Returns:
      the OffAge
    • setOffAge

      public void setOffAge(int OffAge)
      Parameters:
      OffAge - the OffAge to set
    • getOffAgeMax

      public int getOffAgeMax()
      Returns:
      the OffAgeMax
    • setOffAgeMax

      public void setOffAgeMax(int OffAgeMax)
      Parameters:
      OffAgeMax - the OffAgeMax to set
    • getWeight

      public float getWeight()
      Returns:
      the Weight
    • setWeight

      public void setWeight(float Weight)
      Parameters:
      Weight - the Weight to set
    • getActualWeight

      public float getActualWeight()
      Returns:
      the ActualWeight
    • setActualWeight

      public void setActualWeight(float ActualWeight)
      Parameters:
      ActualWeight - the ActualWeight to set
    • getWorldTexture

      public String getWorldTexture()
      Returns:
      the WorldTexture
    • setWorldTexture

      public void setWorldTexture(String WorldTexture)
      Parameters:
      WorldTexture - the WorldTexture to set
    • getDescription

      public String getDescription()
      Returns:
      the Description
    • setDescription

      public void setDescription(String Description)
      Parameters:
      Description - the Description to set
    • incrementCondition

      public void incrementCondition(int increment)
    • getCondition

      public int getCondition()
      Returns:
      the Condition
    • setCondition

      public void setCondition(int Condition, boolean doSound)
    • doBreakSound

      public void doBreakSound()
    • doDamagedSound

      public void doDamagedSound()
    • setCondition

      public void setCondition(int Condition)
      Parameters:
      Condition - the Condition to set
    • setConditionNoSound

      public void setConditionNoSound(int Condition)
    • setConditionWhileLoading

      public void setConditionWhileLoading(int Condition)
    • getOffString

      public String getOffString()
      Returns:
      the OffString
    • setOffString

      public void setOffString(String OffString)
      Parameters:
      OffString - the OffString to set
    • getCookedString

      public String getCookedString()
      Returns:
      the CookedString
    • setCookedString

      public void setCookedString(String CookedString)
      Parameters:
      CookedString - the CookedString to set
    • getUnCookedString

      public String getUnCookedString()
      Returns:
      the UnCookedString
    • setUnCookedString

      public void setUnCookedString(String UnCookedString)
      Parameters:
      UnCookedString - the UnCookedString to set
    • getBurntString

      public String getBurntString()
      Returns:
      the BurntString
    • setBurntString

      public void setBurntString(String BurntString)
      Parameters:
      BurntString - the BurntString to set
    • getModule

      public String getModule()
      Returns:
      the module
    • setModule

      public void setModule(String module)
      Parameters:
      module - the module to set
    • isAlwaysWelcomeGift

      public boolean isAlwaysWelcomeGift()
      Returns:
      the AlwaysWelcomeGift
    • isCanBandage

      public boolean isCanBandage()
      Returns:
      the CanBandage
    • getBoredomChange

      public float getBoredomChange()
      Returns:
      the boredomChange
    • setBoredomChange

      public void setBoredomChange(float boredomChange)
      Parameters:
      boredomChange - the boredomChange to set
    • getUnhappyChange

      public float getUnhappyChange()
      Returns:
      the unhappyChange
    • setUnhappyChange

      public void setUnhappyChange(float unhappyChange)
      Parameters:
      unhappyChange - the unhappyChange to set
    • getStressChange

      public float getStressChange()
      Returns:
      the stressChange
    • setStressChange

      public void setStressChange(float stressChange)
      Parameters:
      stressChange - the stressChange to set
    • getFoodSicknessChange

      public int getFoodSicknessChange()
    • setFoodSicknessChange

      public void setFoodSicknessChange(int foodSicknessChange)
    • getInverseCoughProbability

      public int getInverseCoughProbability()
    • setInverseCoughProbability

      public void setInverseCoughProbability(int inverseCoughProbability)
    • getInverseCoughProbabilitySmoker

      public int getInverseCoughProbabilitySmoker()
    • setInverseCoughProbabilitySmoker

      public void setInverseCoughProbabilitySmoker(int inverseCoughProbabilitySmoker)
    • getTags

      public Set<ItemTag> getTags()
    • hasTag

      public boolean hasTag(ItemTag... tags)
    • hasTag

      public boolean hasTag(ItemTag itemTag)
    • getTaken

      public ArrayList<IsoObject> getTaken()
      Returns:
      the Taken
    • setTaken

      public void setTaken(ArrayList<IsoObject> Taken)
      Parameters:
      Taken - the Taken to set
    • getPlaceDir

      public IsoDirections getPlaceDir()
      Returns:
      the placeDir
    • setPlaceDir

      public void setPlaceDir(IsoDirections placeDir)
      Parameters:
      placeDir - the placeDir to set
    • getNewPlaceDir

      public IsoDirections getNewPlaceDir()
      Returns:
      the newPlaceDir
    • setNewPlaceDir

      public void setNewPlaceDir(IsoDirections newPlaceDir)
      Parameters:
      newPlaceDir - the newPlaceDir to set
    • setReplaceOnUseOn

      public void setReplaceOnUseOn(String ReplaceOnUseOn)
    • getReplaceOnUseOn

      public String getReplaceOnUseOn()
    • getReplaceOnUseOnString

      public String getReplaceOnUseOnString()
    • getReplaceTypes

      public String getReplaceTypes()
    • getReplaceTypesMap

      public HashMap<String,String> getReplaceTypesMap()
    • getReplaceType

      public String getReplaceType(String key)
    • hasReplaceType

      public boolean hasReplaceType(String key)
    • isWaterSource

      public boolean isWaterSource()
      Returns:
      the IsWaterSource
    • CopyModData

      public void CopyModData(se.krka.kahlua.vm.KahluaTable DefaultModData)
    • copyModData

      public void copyModData(se.krka.kahlua.vm.KahluaTable modData)
    • getCount

      public int getCount()
    • setCount

      public void setCount(int count)
    • isActivated

      public boolean isActivated()
    • setActivated

      public void setActivated(boolean activated)
    • setActivatedRemote

      public void setActivatedRemote(boolean activated)
    • setCanBeActivated

      public void setCanBeActivated(boolean activatedItem)
    • canBeActivated

      public boolean canBeActivated()
    • setLightStrength

      public void setLightStrength(float lightStrength)
    • getLightStrength

      public float getLightStrength()
    • isTorchCone

      public boolean isTorchCone()
    • setTorchCone

      public void setTorchCone(boolean isTorchCone)
    • getTorchDot

      public float getTorchDot()
    • getLightDistance

      public int getLightDistance()
    • setLightDistance

      public void setLightDistance(int lightDistance)
    • canEmitLight

      public boolean canEmitLight()
    • isEmittingLight

      public boolean isEmittingLight()
    • canStoreWater

      public boolean canStoreWater()
    • getFatigueChange

      public float getFatigueChange()
    • setFatigueChange

      public void setFatigueChange(float fatigueChange)
    • getCurrentCondition

      public float getCurrentCondition()
      Return the real condition of the weapon, based on this calcul : Condition/ConditionMax * 100
      Returns:
      float
    • setColor

      public void setColor(Color color)
    • getColor

      public Color getColor()
    • getColorInfo

      public ColorInfo getColorInfo()
    • isTwoHandWeapon

      public boolean isTwoHandWeapon()
    • getCustomMenuOption

      public String getCustomMenuOption()
    • setCustomMenuOption

      public void setCustomMenuOption(String customMenuOption)
    • setTooltip

      public void setTooltip(String tooltip)
    • getTooltip

      public String getTooltip()
    • getDisplayCategory

      public String getDisplayCategory()
    • setDisplayCategory

      public void setDisplayCategory(String displayCategory)
    • getHaveBeenRepaired

      public int getHaveBeenRepaired()
    • setHaveBeenRepaired

      public void setHaveBeenRepaired(int haveBeenRepaired)
    • getTimesRepaired

      public int getTimesRepaired()
    • setTimesRepaired

      public void setTimesRepaired(int haveBeenRepaired)
    • copyTimesRepairedFrom

      public void copyTimesRepairedFrom(InventoryItem item)
    • copyTimesRepairedTo

      public void copyTimesRepairedTo(InventoryItem item)
    • getTimesHeadRepaired

      public int getTimesHeadRepaired()
    • setTimesHeadRepaired

      public void setTimesHeadRepaired(int haveBeenRepaired)
    • hasTimesHeadRepaired

      public boolean hasTimesHeadRepaired()
    • copyTimesHeadRepairedFrom

      public void copyTimesHeadRepairedFrom(InventoryItem item)
    • copyTimesHeadRepairedTo

      public void copyTimesHeadRepairedTo(InventoryItem item)
    • isBroken

      public boolean isBroken()
    • setBroken

      public void setBroken(boolean broken)
    • getDisplayName

      public String getDisplayName()
    • isTrap

      public boolean isTrap()
    • addExtraItem

      public void addExtraItem(ItemKey key)
    • addExtraItem

      public void addExtraItem(String type)
    • haveExtraItems

      public boolean haveExtraItems()
    • getExtraItems

      public ArrayList<String> getExtraItems()
    • getExtraItemsWeight

      public float getExtraItemsWeight()
    • isCustomName

      public boolean isCustomName()
    • setCustomName

      public void setCustomName(boolean customName)
    • isFishingLure

      public boolean isFishingLure()
    • copyConditionModData

      public void copyConditionModData(InventoryItem other)
    • setConditionFromModData

      public void setConditionFromModData(InventoryItem other)
    • getBreakSound

      public String getBreakSound()
    • setBreakSound

      public void setBreakSound(String breakSound)
    • getPlaceOneSound

      public String getPlaceOneSound()
    • getPlaceMultipleSound

      public String getPlaceMultipleSound()
    • getSoundByID

      public String getSoundByID(String ID)
    • setBeingFilled

      public void setBeingFilled(boolean v)
    • isBeingFilled

      public boolean isBeingFilled()
    • getFillFromDispenserSound

      public String getFillFromDispenserSound()
    • getFillFromLakeSound

      public String getFillFromLakeSound()
    • getFillFromTapSound

      public String getFillFromTapSound()
    • getFillFromToiletSound

      public String getFillFromToiletSound()
    • getPourLiquidOnGroundSound

      public String getPourLiquidOnGroundSound()
    • isAlcoholic

      public boolean isAlcoholic()
    • setAlcoholic

      public void setAlcoholic(boolean alcoholic)
    • getAlcoholPower

      public float getAlcoholPower()
    • setAlcoholPower

      public void setAlcoholPower(float alcoholPower)
    • getBandagePower

      public float getBandagePower()
    • setBandagePower

      public void setBandagePower(float bandagePower)
    • getReduceInfectionPower

      public float getReduceInfectionPower()
    • setReduceInfectionPower

      public void setReduceInfectionPower(float reduceInfectionPower)
    • saveWithSize

      public final void saveWithSize(ByteBuffer output, boolean net) throws IOException
      Throws:
      IOException
    • isCustomWeight

      public boolean isCustomWeight()
    • setCustomWeight

      public void setCustomWeight(boolean custom)
    • getContentsWeight

      public float getContentsWeight()
    • getHotbarEquippedWeight

      public float getHotbarEquippedWeight()
    • getEquippedWeight

      public float getEquippedWeight()
    • getUnequippedWeight

      public float getUnequippedWeight()
    • isEquipped

      public boolean isEquipped()
    • getUser

      public IsoGameCharacter getUser()
    • getOwner

      public IsoGameCharacter getOwner()
    • getKeyId

      public int getKeyId()
    • setKeyId

      public void setKeyId(int keyId)
    • isRemoteController

      public boolean isRemoteController()
    • setRemoteController

      public void setRemoteController(boolean remoteController)
    • canBeRemote

      public boolean canBeRemote()
    • setCanBeRemote

      public void setCanBeRemote(boolean canBeRemote)
    • getRemoteControlID

      public int getRemoteControlID()
    • setRemoteControlID

      public void setRemoteControlID(int remoteControlId)
    • getRemoteRange

      public int getRemoteRange()
    • setRemoteRange

      public void setRemoteRange(int remoteRange)
    • getExplosionSound

      public String getExplosionSound()
    • setExplosionSound

      public void setExplosionSound(String explosionSound)
    • getCountDownSound

      public String getCountDownSound()
    • setCountDownSound

      public void setCountDownSound(String sound)
    • getColorRed

      public float getColorRed()
    • setColorRed

      public void setColorRed(float colorRed)
    • getColorGreen

      public float getColorGreen()
    • setColorGreen

      public void setColorGreen(float colorGreen)
    • getColorBlue

      public float getColorBlue()
    • setColorBlue

      public void setColorBlue(float colorBlue)
    • getEvolvedRecipeName

      public String getEvolvedRecipeName()
    • setEvolvedRecipeName

      public void setEvolvedRecipeName(String evolvedRecipeName)
    • getMetalValue

      public float getMetalValue()
    • setMetalValue

      public void setMetalValue(float metalValue)
    • getItemHeat

      public float getItemHeat()
    • setItemHeat

      public void setItemHeat(float itemHeat)
    • getInvHeat

      public float getInvHeat()
    • getMeltingTime

      public float getMeltingTime()
    • setMeltingTime

      public void setMeltingTime(float meltingTime)
    • getWorker

      public String getWorker()
    • setWorker

      public void setWorker(String worker)
    • getID

      public int getID()
    • setID

      public void setID(int itemId)
    • isWet

      public boolean isWet()
    • setWet

      public void setWet(boolean isWet)
    • getWetCooldown

      public float getWetCooldown()
    • setWetCooldown

      public void setWetCooldown(float wetCooldown)
    • getItemWhenDry

      public String getItemWhenDry()
    • setItemWhenDry

      public void setItemWhenDry(String itemWhenDry)
    • isFavorite

      public boolean isFavorite()
    • setFavorite

      public void setFavorite(boolean favorite)
    • getRequireInHandOrInventory

      public ArrayList<String> getRequireInHandOrInventory()
    • setRequireInHandOrInventory

      public void setRequireInHandOrInventory(ArrayList<String> requireInHandOrInventory)
    • isCustomColor

      public boolean isCustomColor()
    • setCustomColor

      public void setCustomColor(boolean customColor)
    • doBuildingStash

      public void doBuildingStash()
    • setStashMap

      public void setStashMap(String stashMap)
    • getStashMap

      public String getStashMap()
    • getMechanicType

      public int getMechanicType()
    • getItemCapacity

      public float getItemCapacity()
    • setItemCapacity

      public void setItemCapacity(float capacity)
    • getMaxCapacity

      public int getMaxCapacity()
    • setMaxCapacity

      public void setMaxCapacity(int maxCapacity)
    • isConditionAffectsCapacity

      public boolean isConditionAffectsCapacity()
    • getBrakeForce

      public float getBrakeForce()
    • setBrakeForce

      public void setBrakeForce(float brakeForce)
    • getDurability

      public float getDurability()
    • setDurability

      public void setDurability(float durability)
    • getChanceToSpawnDamaged

      public int getChanceToSpawnDamaged()
    • setChanceToSpawnDamaged

      public void setChanceToSpawnDamaged(int chanceToSpawnDamaged)
    • getConditionLowerNormal

      public float getConditionLowerNormal()
    • setConditionLowerNormal

      public void setConditionLowerNormal(float conditionLowerNormal)
    • getConditionLowerOffroad

      public float getConditionLowerOffroad()
    • setConditionLowerOffroad

      public void setConditionLowerOffroad(float conditionLowerOffroad)
    • getWheelFriction

      public float getWheelFriction()
    • setWheelFriction

      public void setWheelFriction(float wheelFriction)
    • getSuspensionDamping

      public float getSuspensionDamping()
    • setSuspensionDamping

      public void setSuspensionDamping(float suspensionDamping)
    • getSuspensionCompression

      public float getSuspensionCompression()
    • setSuspensionCompression

      public void setSuspensionCompression(float suspensionCompression)
    • setInfected

      public void setInfected(boolean infected)
    • isInfected

      public boolean isInfected()
    • getEngineLoudness

      public float getEngineLoudness()
    • setEngineLoudness

      public void setEngineLoudness(float engineLoudness)
    • getStaticModel

      public String getStaticModel()
    • setStaticModel

      public void setStaticModel(String model)
    • setStaticModel

      public void setStaticModel(ModelKey model)
    • getStaticModelException

      public String getStaticModelException()
    • getIconsForTexture

      public ArrayList<String> getIconsForTexture()
    • setIconsForTexture

      public void setIconsForTexture(ArrayList<String> iconsForTexture)
    • getScore

      public float getScore(SurvivorDesc desc)
    • getPreviousOwner

      public IsoGameCharacter getPreviousOwner()
      Returns:
      the previousOwner
    • setPreviousOwner

      public void setPreviousOwner(IsoGameCharacter previousOwner)
      Parameters:
      previousOwner - the previousOwner to set
    • getScriptItem

      public Item getScriptItem()
      Returns:
      the ScriptItem
    • setScriptItem

      public void setScriptItem(Item ScriptItem)
      Parameters:
      ScriptItem - the ScriptItem to set
    • setItemType

      public void setItemType(ItemType itemType)
    • isItemType

      public boolean isItemType(ItemType itemType)
    • getContainer

      public ItemContainer getContainer()
      Returns:
      the container
    • setContainer

      public void setContainer(ItemContainer container)
      Parameters:
      container - the container to set
    • getBloodClothingType

      public ArrayList<BloodClothingType> getBloodClothingType()
    • setBloodClothingType

      public void setBloodClothingType(ArrayList<BloodClothingType> bloodClothingType)
    • setBlood

      public void setBlood(BloodBodyPartType bodyPartType, float amount)
    • getBlood

      public float getBlood(BloodBodyPartType bodyPartType)
    • setDirt

      public void setDirt(BloodBodyPartType bodyPartType, float amount)
    • getDirt

      public float getDirt(BloodBodyPartType bodyPartType)
    • getClothingItemName

      public String getClothingItemName()
    • getStashChance

      public int getStashChance()
    • setStashChance

      public void setStashChance(int stashChance)
    • getEatType

      public String getEatType()
    • getPourType

      public String getPourType()
    • isUseWorldItem

      public boolean isUseWorldItem()
    • getAmmoType

      public AmmoType getAmmoType()
    • setAmmoType

      public void setAmmoType(AmmoType ammoType)
    • getMaxAmmo

      public int getMaxAmmo()
    • setMaxAmmo

      public void setMaxAmmo(int maxAmmoCount)
    • getCurrentAmmoCount

      public int getCurrentAmmoCount()
    • setCurrentAmmoCount

      public void setCurrentAmmoCount(int ammo)
    • getGunType

      public String getGunType()
    • setGunType

      public void setGunType(String gunType)
    • hasBlood

      public boolean hasBlood()
    • hasDirt

      public boolean hasDirt()
    • getAttachmentType

      public String getAttachmentType()
    • setAttachmentType

      public void setAttachmentType(String attachmentType)
    • getAttachedSlot

      public int getAttachedSlot()
    • setAttachedSlot

      public void setAttachedSlot(int attachedSlot)
    • getAttachmentsProvided

      public ArrayList<String> getAttachmentsProvided()
    • setAttachmentsProvided

      public void setAttachmentsProvided(ArrayList<String> attachmentsProvided)
    • getAttachedSlotType

      public String getAttachedSlotType()
    • setAttachedSlotType

      public void setAttachedSlotType(String attachedSlotType)
    • getAttachmentReplacement

      public String getAttachmentReplacement()
    • setAttachmentReplacement

      public void setAttachmentReplacement(String attachementReplacement)
    • getAttachedToModel

      public String getAttachedToModel()
    • setAttachedToModel

      public void setAttachedToModel(String attachedToModel)
    • getFabricType

      public String getFabricType()
    • getStringItemType

      public String getStringItemType()
    • isProtectFromRainWhileEquipped

      public boolean isProtectFromRainWhileEquipped()
    • isEquippedNoSprint

      public boolean isEquippedNoSprint()
    • getBodyLocation

      public ItemBodyLocation getBodyLocation()
    • isBodyLocation

      public boolean isBodyLocation(ItemBodyLocation itemBodyLocation)
    • getMakeUpType

      public String getMakeUpType()
    • isHidden

      public boolean isHidden()
    • getConsolidateOption

      public String getConsolidateOption()
    • getClothingItemExtra

      public ArrayList<String> getClothingItemExtra()
    • getClothingItemExtraOption

      public ArrayList<String> getClothingItemExtraOption()
    • getWorldStaticItem

      public String getWorldStaticItem()
    • getWorldStaticModel

      public String getWorldStaticModel()
    • setWorldStaticItem

      public void setWorldStaticItem(String model)
    • setWorldStaticModel

      public void setWorldStaticModel(String model)
    • setWorldStaticModel

      public void setWorldStaticModel(ModelKey model)
    • setRegistry_id

      public void setRegistry_id(Item itemscript)
    • getRegistry_id

      public short getRegistry_id()
    • getModID

      public String getModID()
    • getModName

      public String getModName()
    • isVanilla

      public boolean isVanilla()
    • getRecordedMediaIndex

      public short getRecordedMediaIndex()
    • setRecordedMediaIndex

      public void setRecordedMediaIndex(short id)
    • setRecordedMediaIndexInteger

      public void setRecordedMediaIndexInteger(int id)
    • isRecordedMedia

      public boolean isRecordedMedia()
    • getMediaData

      public MediaData getMediaData()
    • getMediaType

      public byte getMediaType()
    • setMediaType

      public void setMediaType(byte b)
    • setRecordedMediaData

      public void setRecordedMediaData(MediaData data)
    • setWorldZRotation

      public void setWorldZRotation(float rot)
    • getWorldZRotation

      public float getWorldZRotation()
    • setWorldYRotation

      public void setWorldYRotation(float rot)
    • getWorldYRotation

      public float getWorldYRotation()
    • setWorldXRotation

      public void setWorldXRotation(float rot)
    • getWorldXRotation

      public float getWorldXRotation()
    • randomizeWorldZRotation

      public void randomizeWorldZRotation()
    • setWorldScale

      public void setWorldScale(float scale)
    • getLuaCreate

      public String getLuaCreate()
    • isInitialised

      public boolean isInitialised()
    • setInitialised

      public void setInitialised(boolean initialised)
    • initialiseItem

      public void initialiseItem()
    • getMilkReplaceItem

      public String getMilkReplaceItem()
    • getMaxMilk

      public int getMaxMilk()
    • isAnimalFeed

      public boolean isAnimalFeed()
    • getAnimalFeedType

      public String getAnimalFeedType()
    • getDigType

      public String getDigType()
    • getSoundParameter

      public String getSoundParameter(String parameterName)
    • isWorn

      public boolean isWorn()
    • reset

      public void reset()
      Overrides:
      reset in class GameEntity
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getTextureColorMask

      public Texture getTextureColorMask()
    • getTextureFluidMask

      public Texture getTextureFluidMask()
    • setTextureColorMask

      public void setTextureColorMask(String tex)
    • setTextureFluidMask

      public void setTextureFluidMask(String tex)
    • getSquare

      public IsoGridSquare getSquare()
      Specified by:
      getSquare in class GameEntity
    • getGameEntityType

      public GameEntityType getGameEntityType()
      Specified by:
      getGameEntityType in class GameEntity
    • getEntityNetID

      public long getEntityNetID()
      Specified by:
      getEntityNetID in class GameEntity
    • getX

      public float getX()
      Specified by:
      getX in class GameEntity
    • getY

      public float getY()
      Specified by:
      getY in class GameEntity
    • getZ

      public float getZ()
      Specified by:
      getZ in class GameEntity
    • isEntityValid

      public boolean isEntityValid()
      Specified by:
      isEntityValid in class GameEntity
    • RemoveFromContainer

      public static boolean RemoveFromContainer(InventoryItem item)
    • getAnimalTracks

      public AnimalTracks getAnimalTracks()
    • setAnimalTracks

      public void setAnimalTracks(AnimalTracks animalTracks)
    • syncItemFields

      public void syncItemFields()
    • checkSyncItemFields

      public void checkSyncItemFields(boolean b)
    • getWithDrainable

      public String getWithDrainable()
    • getWithoutDrainable

      public String getWithoutDrainable()
    • getStaticModelsByIndex

      public ArrayList<String> getStaticModelsByIndex()
    • setStaticModelsByIndex

      public void setStaticModelsByIndex(ArrayList<String> staticModelsByIndex)
    • getWorldStaticModelsByIndex

      public ArrayList<String> getWorldStaticModelsByIndex()
    • setWorldStaticModelsByIndex

      public void setWorldStaticModelsByIndex(ArrayList<String> staticModelsByIndex)
    • tryGetWorldStaticModelByIndex

      public String tryGetWorldStaticModelByIndex(int index)
    • getModelIndex

      public int getModelIndex()
    • setModelIndex

      public void setModelIndex(int index)
    • getVisionModifier

      public float getVisionModifier()
    • getHearingModifier

      public float getHearingModifier()
    • getWorldObjectSprite

      public String getWorldObjectSprite()
    • getStrainModifier

      public float getStrainModifier()
    • getConditionLowerChance

      public int getConditionLowerChance()
    • setConditionFrom

      public void setConditionFrom(InventoryItem item)
    • setConditionTo

      public void setConditionTo(InventoryItem item)
    • reduceCondition

      public void reduceCondition()
    • damageCheck

      public boolean damageCheck()
    • damageCheck

      public boolean damageCheck(int skill)
    • damageCheck

      public boolean damageCheck(int skill, float multiplier)
    • damageCheck

      public boolean damageCheck(int skill, float multiplier, boolean maintenance)
    • damageCheck

      public boolean damageCheck(int skill, float multiplier, boolean maintenance, boolean isEquipped)
    • damageCheck

      public boolean damageCheck(int skill, float multiplier, boolean maintenance, boolean isEquipped, IsoGameCharacter character)
    • sharpnessCheck

      public boolean sharpnessCheck()
    • sharpnessCheck

      public boolean sharpnessCheck(int skill)
    • sharpnessCheck

      public boolean sharpnessCheck(int skill, float multiplier)
    • sharpnessCheck

      public boolean sharpnessCheck(int skill, float multiplier, boolean maintenance)
    • sharpnessCheck

      public boolean sharpnessCheck(int skill, float multiplier, boolean maintenance, boolean isEquipped)
    • hasSharpness

      public boolean hasSharpness()
    • getSharpness

      public float getSharpness()
    • getMaxSharpness

      public float getMaxSharpness()
    • applyMaxSharpness

      public void applyMaxSharpness()
    • getSharpnessMultiplier

      public float getSharpnessMultiplier()
    • setSharpness

      public void setSharpness(float value)
    • setSharpnessFrom

      public void setSharpnessFrom(InventoryItem item)
    • getSharpnessIncrement

      public float getSharpnessIncrement()
    • isDamaged

      public boolean isDamaged()
    • isDull

      public boolean isDull()
    • getMaintenanceMod

      public int getMaintenanceMod()
    • getMaintenanceMod

      public int getMaintenanceMod(boolean isEquipped)
    • getMaintenanceMod

      public int getMaintenanceMod(IsoGameCharacter character)
    • getMaintenanceMod

      public int getMaintenanceMod(boolean isEquipped, IsoGameCharacter character)
    • getWeaponLevel

      public int getWeaponLevel()
    • headConditionCheck

      public boolean headConditionCheck()
    • headConditionCheck

      public boolean headConditionCheck(int skill)
    • headConditionCheck

      public boolean headConditionCheck(int skill, float multiplier)
    • headConditionCheck

      public boolean headConditionCheck(int skill, float multiplier, boolean maintenance)
    • headConditionCheck

      public boolean headConditionCheck(int skill, float multiplier, boolean maintenance, boolean isEquipped)
    • getHeadConditionLowerChance

      public int getHeadConditionLowerChance()
    • getHeadConditionLowerChanceMultiplier

      public float getHeadConditionLowerChanceMultiplier()
    • reduceHeadCondition

      public void reduceHeadCondition()
    • hasHeadCondition

      public boolean hasHeadCondition()
    • getHeadCondition

      public int getHeadCondition()
    • getHeadConditionMax

      public int getHeadConditionMax()
    • setHeadCondition

      public void setHeadCondition(int value)
    • setHeadConditionFromCondition

      public void setHeadConditionFromCondition(InventoryItem item)
    • setConditionFromHeadCondition

      public void setConditionFromHeadCondition(InventoryItem item)
    • hasQuality

      public boolean hasQuality()
    • getQuality

      public int getQuality()
    • setQuality

      public void setQuality(int value)
    • getOnBreak

      public String getOnBreak()
    • onBreak

      public void onBreak()
    • getBloodLevelAdjustedLow

      public float getBloodLevelAdjustedLow()
    • getBloodLevelAdjustedHigh

      public float getBloodLevelAdjustedHigh()
    • getBloodLevel

      public float getBloodLevel()
    • setBloodLevel

      public void setBloodLevel(float level)
    • copyBloodLevelFrom

      public void copyBloodLevelFrom(InventoryItem item)
    • isBloody

      public boolean isBloody()
    • getDamagedSound

      public String getDamagedSound()
    • getBulletHitArmourSound

      public String getBulletHitArmourSound()
    • getWeaponHitArmourSound

      public String getWeaponHitArmourSound()
    • getShoutType

      public String getShoutType()
    • getShoutMultiplier

      public float getShoutMultiplier()
    • getEatTime

      public int getEatTime()
    • isVisualAid

      public boolean isVisualAid()
    • getDiscomfortModifier

      public float getDiscomfortModifier()
    • hasMetal

      public boolean hasMetal()
    • getFireFuelRatio

      public float getFireFuelRatio()
    • getWetness

      public float getWetness()
    • isMemento

      public boolean isMemento()
    • nameAfterDescriptor

      public void nameAfterDescriptor(SurvivorDesc desc)
    • monogramAfterDescriptor

      public void monogramAfterDescriptor(SurvivorDesc desc)
    • getLootType

      public String getLootType()
    • getIsCraftingConsumed

      public boolean getIsCraftingConsumed()
    • setIsCraftingConsumed

      public void setIsCraftingConsumed(boolean craftingConsumed)
    • OnAddedToContainer

      public void OnAddedToContainer(ItemContainer container)
    • OnBeforeRemoveFromContainer

      public void OnBeforeRemoveFromContainer(ItemContainer container)
    • getDeadBodyObject

      public IsoDeadBody getDeadBodyObject()
    • isPureWater

      public boolean isPureWater(boolean includeTainted)
    • copyClothing

      public void copyClothing(InventoryItem otherItem)
    • inheritFoodAgeFrom

      public void inheritFoodAgeFrom(InventoryItem otherFood)
    • inheritOlderFoodAge

      public void inheritOlderFoodAge(InventoryItem otherFood)
    • isFood

      public boolean isFood()
    • unsealIfNotFull

      public void unsealIfNotFull()
    • randomizeCondition

      public void randomizeCondition()
    • randomizeGeneralCondition

      public void randomizeGeneralCondition()
    • randomizeHeadCondition

      public void randomizeHeadCondition()
    • randomizeSharpness

      public void randomizeSharpness()
    • getFluidContainerFromSelfOrWorldItem

      public FluidContainer getFluidContainerFromSelfOrWorldItem()
    • isEmptyOfFluid

      public boolean isEmptyOfFluid()
    • isFullOfFluid

      public boolean isFullOfFluid()
    • isFluidContainer

      public boolean isFluidContainer()
    • isSpice

      public boolean isSpice()
    • isKeyRing

      public boolean isKeyRing()
    • isFakeEquipped

      public boolean isFakeEquipped(IsoGameCharacter character)
    • isFakeEquipped

      public boolean isFakeEquipped()
    • getItemAfterCleaning

      public String getItemAfterCleaning()
    • getResearchableRecipes

      public ArrayList<String> getResearchableRecipes()
    • getResearchableRecipes

      public ArrayList<String> getResearchableRecipes(IsoGameCharacter chr)
    • hasResearchableRecipes

      public boolean hasResearchableRecipes()
    • researchRecipes

      public void researchRecipes(IsoGameCharacter character)
    • hasOrigin

      public boolean hasOrigin()
    • canHaveOrigin

      public boolean canHaveOrigin()
    • setOrigin

      public boolean setOrigin(IsoGridSquare sq)
    • setOrigin

      public boolean setOrigin(int x, int y)
    • setOrigin

      public boolean setOrigin(int x, int y, int z)
    • setOriginX

      public void setOriginX(int value)
    • setOriginY

      public void setOriginY(int value)
    • setOriginZ

      public void setOriginZ(int value)
    • getOriginX

      public int getOriginX()
    • getOriginY

      public int getOriginY()
    • getOriginZ

      public int getOriginZ()
    • canBeEquipped

      public ItemBodyLocation canBeEquipped()
    • getPlayer

      public IsoPlayer getPlayer()
    • getWorldAlpha

      public float getWorldAlpha()
    • setWorldAlpha

      public void setWorldAlpha(float worldAlpha)
    • Remove

      public void Remove()
    • SynchSpawn

      public void SynchSpawn()
    • isFavouriteRecipeInput

      public boolean isFavouriteRecipeInput(IsoPlayer player)
    • copyConditionStatesFrom

      public void copyConditionStatesFrom(InventoryItem otherItem)
    • getFileName

      public String getFileName()
    • setDoingExtendedPlacement

      public void setDoingExtendedPlacement(boolean enable)
    • isDoingExtendedPlacement

      public boolean isDoingExtendedPlacement()
    • isNoRecipes

      public boolean isNoRecipes(IsoPlayer player)
    • setNoRecipes

      public void setNoRecipes(IsoPlayer player, Boolean noCrafting)
    • getNoRecipesModDataString

      public static String getNoRecipesModDataString()
    • isUnwanted

      public boolean isUnwanted(IsoPlayer player)
    • setUnwanted

      public void setUnwanted(IsoPlayer player, boolean unwanted)
    • emptyLiquid

      public InventoryItem emptyLiquid()
    • getOpeningRecipe

      public String getOpeningRecipe()
    • getDoubleClickRecipe

      public String getDoubleClickRecipe()
    • isSealed

      public boolean isSealed()
    • hasBeenSeen

      public boolean hasBeenSeen(IsoPlayer player)
    • hasBeenHeard

      public boolean hasBeenHeard(IsoPlayer player)
    • getReplaceOnExtinguish

      public String getReplaceOnExtinguish()
    • getExtinguishedItem

      public InventoryItem getExtinguishedItem()
    • isSharpenable

      public boolean isSharpenable()