Class InventoryItem

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

public class InventoryItem extends Object
  • Field Details

    • Cooked

      public boolean Cooked
    • ReplaceOnUseOn

      public 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 int id
    • RequiresEquippedBothHands

      public boolean RequiresEquippedBothHands
    • byteData

      public ByteBuffer byteData
    • extraItems

      public ArrayList<String> extraItems
    • keepOnDeplete

      public boolean keepOnDeplete
    • worldZRotation

      public int worldZRotation
    • worldScale

      public float worldScale
    • 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

    • getSaveType

      public int getSaveType()
    • getWorldItem

      public IsoWorldInventoryObject getWorldItem()
    • setEquipParent

      public void setEquipParent(IsoGameCharacter parent)
    • getEquipParent

      public IsoGameCharacter getEquipParent()
    • getBringToBearSound

      public String getBringToBearSound()
    • getEquipSound

      public String getEquipSound()
    • getUnequipSound

      public String getUnequipSound()
    • 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()
    • 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()
    • 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)
    • 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()
    • UseItem

      public void UseItem()
    • Use

      public void Use(boolean bCrafting)
    • Use

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

      public boolean shouldUpdateInWorld()
    • update

      public void update()
    • finishupdate

      public boolean finishupdate()
    • updateSound

      public void updateSound(BaseSoundEmitter emitter)
    • 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.
      Parameters:
      input -
      WorldVersion -
      doSaveTypeCheck -
      Returns:
      InventoryItem, or null if the item failed loading or if Creating the item failed due to being obsolete etc.
      Throws:
      IOException
    • load

      public void load(ByteBuffer input, int WorldVersion) throws IOException
      Throws:
      IOException
    • 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
    • getName

      public String getName()
      Returns:
      the name
    • 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
    • setTexture

      public void setTexture(Texture texture)
      Parameters:
      texture - the texture to set
    • 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
    • getCurrentUses

      public int getCurrentUses()
    • getUses

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

      @Deprecated public void setUses(int uses)
      Deprecated.
      Parameters:
      uses - the uses to set
    • 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
    • getCondition

      public int getCondition()
      Returns:
      the Condition
    • setCondition

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

      public void setCondition(int Condition)
      Parameters:
      Condition - the Condition to set
    • 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
    • getTags

      public ArrayList<String> getTags()
    • hasTag

      public boolean hasTag(String tag)
    • 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)
    • setIsWaterSource

      public void setIsWaterSource(boolean IsWaterSource)
    • 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)
    • isBroken

      public boolean isBroken()
    • setBroken

      public void setBroken(boolean broken)
    • getDisplayName

      public String getDisplayName()
    • isTrap

      public boolean isTrap()
    • 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()
    • getFillFromTapSound

      public String getFillFromTapSound()
    • 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()
    • getKeyId

      public int getKeyId()
    • setKeyId

      public void setKeyId(int keyId)
    • isTaintedWater

      public boolean isTaintedWater()
    • setTaintedWater

      public void setTaintedWater(boolean taintedWater)
    • 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)
    • 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)
    • 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()
    • 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
    • getCat

      public ItemType getCat()
      Returns:
      the cat
    • setCat

      public void setCat(ItemType cat)
      Parameters:
      cat - the cat to set
    • 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()
    • isUseWorldItem

      public boolean isUseWorldItem()
    • isHairDye

      public boolean isHairDye()
    • getAmmoType

      public String getAmmoType()
    • setAmmoType

      public void setAmmoType(String 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 String getBodyLocation()
    • 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()
    • 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(int rot)
    • setWorldScale

      public void setWorldScale(float scale)
    • getLuaCreate

      public String getLuaCreate()
    • isInitialised

      public boolean isInitialised()
    • setInitialised

      public void setInitialised(boolean initialised)
    • initialiseItem

      public void initialiseItem()
    • getSoundParameter

      public String getSoundParameter(String parameterName)