Package zombie.inventory
Class InventoryItem
java.lang.Object
zombie.inventory.InventoryItem
- Direct Known Subclasses:
AlarmClock
,Clothing
,ComboItem
,DrainableComboItem
,Food
,HandWeapon
,InventoryContainer
,Key
,KeyRing
,Literature
,MapItem
,Moveable
,WeaponPart
-
Field Summary
Modifier and TypeFieldDescriptionboolean
boolean
boolean
float
int
boolean
float
boolean
boolean
float
int
-
Constructor Summary
ConstructorDescriptionInventoryItem
(String module, String name, String type, String tex) InventoryItem
(String module, String name, String type, Item item) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addExtraItem
(String type) boolean
boolean
boolean
boolean
boolean
CanStack
(InventoryItem item) boolean
void
void
copyModData
(se.krka.kahlua.vm.KahluaTable modData) void
CopyModData
(se.krka.kahlua.vm.KahluaTable DefaultModData) void
void
DoTooltip
(ObjectTooltip tooltipUI) void
DoTooltip
(ObjectTooltip tooltipUI, ObjectTooltip.Layout layout) boolean
float
getA()
float
float
getAge()
float
int
float
getB()
float
float
getBlood
(BloodBodyPartType bodyPartType) float
float
getCat()
int
getCleanString
(float weight) getColor()
float
float
float
int
float
float
int
int
int
float
float
int
getCount()
int
float
Return the real condition of the weapon, based on this calcul : Condition/ConditionMax * 100int
float
getDirt
(BloodBodyPartType bodyPartType) float
float
float
float
float
getG()
int
float
int
getID()
float
float
float
float
int
getKeyId()
float
int
float
int
int
int
byte
float
float
float
float
se.krka.kahlua.vm.KahluaTable
getModID()
getName()
int
int
float
getR()
short
float
short
int
int
getReplaceType
(String key) int
float
getScore
(SurvivorDesc desc) getSoundByID
(String ID) getSoundParameter
(String parameterName) int
float
float
float
getTags()
getTaken()
getTex()
float
getType()
float
float
int
getUses()
Deprecated.float
float
float
boolean
hasBlood()
boolean
hasDirt()
boolean
boolean
hasReplaceType
(String key) boolean
boolean
float
void
boolean
boolean
boolean
boolean
boolean
isBroken()
boolean
isBurnt()
boolean
boolean
boolean
boolean
boolean
isCooked()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
IsFood()
boolean
boolean
isHidden()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
IsMap()
boolean
boolean
boolean
boolean
boolean
IsRotten()
boolean
boolean
boolean
isTrap()
boolean
boolean
boolean
boolean
boolean
IsWeapon()
boolean
isWet()
void
load
(ByteBuffer input, int WorldVersion) static InventoryItem
loadItem
(ByteBuffer input, int WorldVersion) static InventoryItem
loadItem
(ByteBuffer input, int WorldVersion, boolean doSaveTypeCheck) Attempts loading the item including creation, uppon failure bytes might be skipped or the buffer position may be set to end item position.boolean
ModDataMatches
(InventoryItem item) void
save
(ByteBuffer output, boolean net) final void
saveWithSize
(ByteBuffer output, boolean net) void
setActivated
(boolean activated) void
setActivatedRemote
(boolean activated) void
setActualWeight
(float ActualWeight) void
setAge
(float Age) void
setAlcoholic
(boolean alcoholic) void
setAlcoholPower
(float alcoholPower) void
setAmmoType
(String ammoType) void
setAttachedSlot
(int attachedSlot) void
setAttachedSlotType
(String attachedSlotType) void
setAttachedToModel
(String attachedToModel) void
setAttachmentReplacement
(String attachementReplacement) void
setAttachmentsProvided
(ArrayList<String> attachmentsProvided) void
setAttachmentType
(String attachmentType) void
void
setBandagePower
(float bandagePower) void
setBeingFilled
(boolean v) void
setBlood
(BloodBodyPartType bodyPartType, float amount) void
setBloodClothingType
(ArrayList<BloodClothingType> bloodClothingType) void
setBoredomChange
(float boredomChange) void
setBrakeForce
(float brakeForce) void
setBreakSound
(String breakSound) void
setBroken
(boolean broken) void
setBurnt
(boolean Burnt) void
setBurntString
(String BurntString) void
setCanBeActivated
(boolean activatedItem) void
setCanBeRemote
(boolean canBeRemote) void
void
setChanceToSpawnDamaged
(int chanceToSpawnDamaged) void
void
setColorBlue
(float colorBlue) void
setColorGreen
(float colorGreen) void
setColorRed
(float colorRed) void
setCondition
(int Condition) void
setCondition
(int Condition, boolean doSound) void
void
setConditionLowerNormal
(float conditionLowerNormal) void
setConditionLowerOffroad
(float conditionLowerOffroad) void
setConditionMax
(int ConditionMax) void
setContainer
(ItemContainer container) void
SetContainerPosition
(int x, int y) void
setContainerX
(int containerX) void
setContainerY
(int containerY) void
setCooked
(boolean Cooked) void
setCookedString
(String CookedString) void
setCookingTime
(float CookingTime) void
setCount
(int count) void
setCountDownSound
(String sound) void
setCurrentAmmoCount
(int ammo) void
setCustomColor
(boolean customColor) void
setCustomMenuOption
(String customMenuOption) void
setCustomName
(boolean customName) void
setCustomWeight
(boolean custom) void
setDescription
(String Description) void
setDirt
(BloodBodyPartType bodyPartType, float amount) void
setDisplayCategory
(String displayCategory) void
setEngineLoudness
(float engineLoudness) void
setEquipParent
(IsoGameCharacter parent) void
setEvolvedRecipeName
(String evolvedRecipeName) void
setExplosionSound
(String explosionSound) void
setFatigueChange
(float fatigueChange) void
setFavorite
(boolean favorite) void
setGunType
(String gunType) void
setHaveBeenRepaired
(int haveBeenRepaired) void
setIconsForTexture
(ArrayList<String> iconsForTexture) void
setID
(int itemId) void
setInfected
(boolean infected) void
setInitialised
(boolean initialised) void
setIsCookable
(boolean IsCookable) void
setIsWaterSource
(boolean IsWaterSource) void
setItemCapacity
(float capacity) void
setItemHeat
(float itemHeat) void
setItemWhenDry
(String itemWhenDry) void
setJobDelta
(float delta) void
setJobType
(String type) void
setKeyId
(int keyId) void
setLastAged
(float time) void
setLightDistance
(int lightDistance) void
setLightStrength
(float lightStrength) void
setMaxAmmo
(int maxAmmoCount) void
setMaxCapacity
(int maxCapacity) void
setMediaType
(byte b) void
setMeltingTime
(float meltingTime) void
setMetalValue
(float metalValue) void
setMinutesToBurn
(float MinutesToBurn) void
setMinutesToCook
(float MinutesToCook) void
void
void
setNewPlaceDir
(IsoDirections newPlaceDir) void
setOffAge
(int OffAge) void
setOffAgeMax
(int OffAgeMax) void
setOffString
(String OffString) void
setPlaceDir
(IsoDirections placeDir) void
setPreviousOwner
(IsoGameCharacter previousOwner) void
void
setRecordedMediaIndex
(short id) void
setRecordedMediaIndexInteger
(int id) void
setReduceInfectionPower
(float reduceInfectionPower) void
setRegistry_id
(Item itemscript) void
setRemoteControlID
(int remoteControlID) void
setRemoteController
(boolean remoteController) void
setRemoteRange
(int remoteRange) void
setReplaceOnUse
(String replaceOnUse) void
setReplaceOnUseOn
(String ReplaceOnUseOn) void
setRequireInHandOrInventory
(ArrayList<String> requireInHandOrInventory) void
setRightClickContainer
(ItemContainer rightClickContainer) void
setScriptItem
(Item ScriptItem) void
setStashChance
(int stashChance) void
setStashMap
(String stashMap) void
setStressChange
(float stressChange) void
setSuspensionCompression
(float suspensionCompression) void
setSuspensionDamping
(float suspensionDamping) void
setTaintedWater
(boolean taintedWater) void
void
setTexture
(Texture texture) void
setTextureBurnt
(Texture textureBurnt) void
setTextureCooked
(Texture textureCooked) void
setTexturerotten
(Texture texturerotten) void
setTooltip
(String tooltip) void
setTorchCone
(boolean isTorchCone) void
void
setUnCookedString
(String UnCookedString) void
setUnhappyChange
(float unhappyChange) void
setUses
(int uses) Deprecated.void
setWeight
(float Weight) void
setWet
(boolean isWet) void
setWetCooldown
(float wetCooldown) void
setWheelFriction
(float wheelFriction) void
void
void
setWorldScale
(float scale) void
setWorldTexture
(String WorldTexture) void
setWorldZRotation
(int rot) boolean
void
void
void
update()
void
void
updateSound
(BaseSoundEmitter emitter) void
Use()
void
Use
(boolean bCrafting) void
Use
(boolean bCrafting, boolean bInContainer) void
UseItem()
-
Field Details
-
Cooked
public boolean Cooked -
ReplaceOnUseOn
-
col
-
IsWaterSource
public boolean IsWaterSource -
CanStoreWater
public boolean CanStoreWater -
CanStack
public boolean CanStack -
fatigueChange
public float fatigueChange -
worldItem
-
id
public int id -
RequiresEquippedBothHands
public boolean RequiresEquippedBothHands -
byteData
-
extraItems
-
keepOnDeplete
public boolean keepOnDeplete -
worldZRotation
public int worldZRotation -
worldScale
public float worldScale -
atlasTexture
-
jobDelta
public float jobDelta -
jobType
-
mainCategory
-
CloseKillMove
-
-
Constructor Details
-
InventoryItem
-
InventoryItem
-
-
Method Details
-
getSaveType
public int getSaveType() -
getWorldItem
-
setEquipParent
-
getEquipParent
-
getBringToBearSound
-
getEquipSound
-
getUnequipSound
-
setWorldItem
-
setJobDelta
public void setJobDelta(float delta) -
getJobDelta
public float getJobDelta() -
setJobType
-
getJobType
-
hasModData
public boolean hasModData() -
getModData
public se.krka.kahlua.vm.KahluaTable getModData() -
storeInByteData
-
getByteData
-
isRequiresEquippedBothHands
public boolean isRequiresEquippedBothHands() -
getA
public float getA() -
getR
public float getR() -
getG
public float getG() -
getB
public float getB() -
getType
-
getTex
-
getCategory
-
IsRotten
public boolean IsRotten() -
HowRotten
public float HowRotten() -
CanStack
-
ModDataMatches
-
DoTooltip
-
getCleanString
-
DoTooltip
-
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
-
getFullType
-
save
- Throws:
IOException
-
loadItem
- 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
- 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
-
isInLocalPlayerInventory
public boolean isInLocalPlayerInventory() -
isInPlayerInventory
public boolean isInPlayerInventory() -
getItemReplacementPrimaryHand
-
getItemReplacementSecondHand
-
getClothingItem
-
getAlternateModelName
-
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
- Returns:
- the name
-
setName
- Parameters:
name
- the name to set
-
getReplaceOnUse
- Returns:
- the replaceOnUse
-
setReplaceOnUse
- Parameters:
replaceOnUse
- the replaceOnUse to set
-
getReplaceOnUseFullType
-
getConditionMax
public int getConditionMax()- Returns:
- the ConditionMax
-
setConditionMax
public void setConditionMax(int ConditionMax) - Parameters:
ConditionMax
- the ConditionMax to set
-
getRightClickContainer
- Returns:
- the rightClickContainer
-
setRightClickContainer
- Parameters:
rightClickContainer
- the rightClickContainer to set
-
getSwingAnim
- Returns:
- the swingAnim
-
getTexture
- Returns:
- the texture
-
setTexture
- Parameters:
texture
- the texture to set
-
getTexturerotten
- Returns:
- the texturerotten
-
setTexturerotten
- Parameters:
texturerotten
- the texturerotten to set
-
getTextureCooked
- Returns:
- the textureCooked
-
setTextureCooked
- Parameters:
textureCooked
- the textureCooked to set
-
getTextureBurnt
- Returns:
- the textureBurnt
-
setTextureBurnt
- Parameters:
textureBurnt
- the textureBurnt to set
-
setType
- Parameters:
type
- the type to set
-
getCurrentUses
public int getCurrentUses() -
getUses
Deprecated.- Returns:
- the uses
-
setUses
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
- Returns:
- the WorldTexture
-
setWorldTexture
- Parameters:
WorldTexture
- the WorldTexture to set
-
getDescription
- Returns:
- the Description
-
setDescription
- 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
- Returns:
- the OffString
-
setOffString
- Parameters:
OffString
- the OffString to set
-
getCookedString
- Returns:
- the CookedString
-
setCookedString
- Parameters:
CookedString
- the CookedString to set
-
getUnCookedString
- Returns:
- the UnCookedString
-
setUnCookedString
- Parameters:
UnCookedString
- the UnCookedString to set
-
getBurntString
- Returns:
- the BurntString
-
setBurntString
- Parameters:
BurntString
- the BurntString to set
-
getModule
- Returns:
- the module
-
setModule
- 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
-
hasTag
-
getTaken
- Returns:
- the Taken
-
setTaken
- Parameters:
Taken
- the Taken to set
-
getPlaceDir
- Returns:
- the placeDir
-
setPlaceDir
- Parameters:
placeDir
- the placeDir to set
-
getNewPlaceDir
- Returns:
- the newPlaceDir
-
setNewPlaceDir
- Parameters:
newPlaceDir
- the newPlaceDir to set
-
setReplaceOnUseOn
-
getReplaceOnUseOn
-
getReplaceOnUseOnString
-
getReplaceTypes
-
getReplaceTypesMap
-
getReplaceType
-
hasReplaceType
-
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
-
getColor
-
getColorInfo
-
isTwoHandWeapon
public boolean isTwoHandWeapon() -
getCustomMenuOption
-
setCustomMenuOption
-
setTooltip
-
getTooltip
-
getDisplayCategory
-
setDisplayCategory
-
getHaveBeenRepaired
public int getHaveBeenRepaired() -
setHaveBeenRepaired
public void setHaveBeenRepaired(int haveBeenRepaired) -
isBroken
public boolean isBroken() -
setBroken
public void setBroken(boolean broken) -
getDisplayName
-
isTrap
public boolean isTrap() -
addExtraItem
-
haveExtraItems
public boolean haveExtraItems() -
getExtraItems
-
getExtraItemsWeight
public float getExtraItemsWeight() -
isCustomName
public boolean isCustomName() -
setCustomName
public void setCustomName(boolean customName) -
isFishingLure
public boolean isFishingLure() -
copyConditionModData
-
setConditionFromModData
-
getBreakSound
-
setBreakSound
-
getPlaceOneSound
-
getPlaceMultipleSound
-
getSoundByID
-
setBeingFilled
public void setBeingFilled(boolean v) -
isBeingFilled
public boolean isBeingFilled() -
getFillFromDispenserSound
-
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
- 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
-
setExplosionSound
-
getCountDownSound
-
setCountDownSound
-
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
-
setEvolvedRecipeName
-
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
-
setWorker
-
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
-
setItemWhenDry
-
isFavorite
public boolean isFavorite() -
setFavorite
public void setFavorite(boolean favorite) -
getRequireInHandOrInventory
-
setRequireInHandOrInventory
-
isCustomColor
public boolean isCustomColor() -
setCustomColor
public void setCustomColor(boolean customColor) -
doBuildingStash
public void doBuildingStash() -
setStashMap
-
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
-
getIconsForTexture
-
setIconsForTexture
-
getScore
-
getPreviousOwner
- Returns:
- the previousOwner
-
setPreviousOwner
- Parameters:
previousOwner
- the previousOwner to set
-
getScriptItem
- Returns:
- the ScriptItem
-
setScriptItem
- Parameters:
ScriptItem
- the ScriptItem to set
-
getCat
- Returns:
- the cat
-
setCat
- Parameters:
cat
- the cat to set
-
getContainer
- Returns:
- the container
-
setContainer
- Parameters:
container
- the container to set
-
getBloodClothingType
-
setBloodClothingType
-
setBlood
-
getBlood
-
setDirt
-
getDirt
-
getClothingItemName
-
getStashChance
public int getStashChance() -
setStashChance
public void setStashChance(int stashChance) -
getEatType
-
isUseWorldItem
public boolean isUseWorldItem() -
isHairDye
public boolean isHairDye() -
getAmmoType
-
setAmmoType
-
getMaxAmmo
public int getMaxAmmo() -
setMaxAmmo
public void setMaxAmmo(int maxAmmoCount) -
getCurrentAmmoCount
public int getCurrentAmmoCount() -
setCurrentAmmoCount
public void setCurrentAmmoCount(int ammo) -
getGunType
-
setGunType
-
hasBlood
public boolean hasBlood() -
hasDirt
public boolean hasDirt() -
getAttachmentType
-
setAttachmentType
-
getAttachedSlot
public int getAttachedSlot() -
setAttachedSlot
public void setAttachedSlot(int attachedSlot) -
getAttachmentsProvided
-
setAttachmentsProvided
-
getAttachedSlotType
-
setAttachedSlotType
-
getAttachmentReplacement
-
setAttachmentReplacement
-
getAttachedToModel
-
setAttachedToModel
-
getFabricType
-
getStringItemType
-
isProtectFromRainWhileEquipped
public boolean isProtectFromRainWhileEquipped() -
isEquippedNoSprint
public boolean isEquippedNoSprint() -
getBodyLocation
-
getMakeUpType
-
isHidden
public boolean isHidden() -
getConsolidateOption
-
getClothingItemExtra
-
getClothingItemExtraOption
-
getWorldStaticItem
-
setRegistry_id
-
getRegistry_id
public short getRegistry_id() -
getModID
-
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
-
getMediaType
public byte getMediaType() -
setMediaType
public void setMediaType(byte b) -
setRecordedMediaData
-
setWorldZRotation
public void setWorldZRotation(int rot) -
setWorldScale
public void setWorldScale(float scale) -
getLuaCreate
-
isInitialised
public boolean isInitialised() -
setInitialised
public void setInitialised(boolean initialised) -
initialiseItem
public void initialiseItem() -
getSoundParameter
-