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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected float
protected float
protected boolean
protected float
protected boolean
protected String
boolean
protected ItemType
protected int
protected int
protected ItemContainer
protected int
protected int
boolean
protected String
protected float
protected String
protected String
float
protected String
protected String
protected String
protected String
int
protected boolean
float
protected float
protected float
protected float
protected String
protected String
protected IsoDirections
protected int
protected int
protected String
protected IsoDirections
protected IsoGameCharacter
protected String
protected String
boolean
protected ItemContainer
protected Item
protected String
protected String
protected float
protected Texture
protected Texture
protected Texture
protected Texture
protected Texture
protected Texture
protected String
protected String
protected String
protected float
protected int
protected ItemVisual
protected float
float
protected String
int
int
int
Fields inherited from class zombie.entity.GameEntity
DEFAULT_ENTITY_DISPLAY_NAME
-
Constructor Summary
ConstructorsConstructorDescriptionInventoryItem
(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
void
boolean
boolean
boolean
boolean
boolean
CanStack
(InventoryItem item) boolean
void
copyBloodLevelFrom
(InventoryItem inventoryItem1) void
copyClothing
(InventoryItem inventoryItem0) void
void
copyModData
(se.krka.kahlua.vm.KahluaTable kahluaTable) void
CopyModData
(se.krka.kahlua.vm.KahluaTable kahluaTable) void
copyTimesHeadRepairedFrom
(InventoryItem inventoryItem1) void
copyTimesHeadRepairedTo
(InventoryItem inventoryItem0) void
copyTimesRepairedFrom
(InventoryItem inventoryItem1) void
copyTimesRepairedTo
(InventoryItem inventoryItem0) createAndStoreDefaultDeadBody
(IsoGridSquare isoGridSquare) boolean
boolean
damageCheck
(int int0) boolean
damageCheck
(int int0, float float0) boolean
damageCheck
(int int0, float float0, boolean boolean0) boolean
damageCheck
(int int0, float float0, boolean boolean0, boolean boolean1) boolean
damageCheck
(int int0, float float0, boolean boolean0, boolean boolean1, IsoGameCharacter isoGameCharacter) void
void
void
void
DoTooltip
(ObjectTooltip tooltipUI) void
DoTooltip
(ObjectTooltip tooltipUI, ObjectTooltip.Layout layout) void
DoTooltipEmbedded
(ObjectTooltip objectTooltip, ObjectTooltip.Layout layout1, int int2) boolean
float
getA()
float
float
getAge()
float
int
float
getB()
float
float
getBlood
(BloodBodyPartType bodyPartType) float
float
float
float
float
getCat()
int
getCleanString
(float weight) getColor()
float
float
float
int
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
float
getDirt
(BloodBodyPartType bodyPartType) float
float
int
float
long
float
float
float
float
float
getG()
int
int
int
float
int
float
float
getIcon()
int
getID()
float
boolean
float
float
float
int
getKeyId()
float
int
float
int
int
getMaintenanceMod
(boolean boolean0) int
getMaintenanceMod
(boolean boolean0, IsoGameCharacter isoGameCharacter) int
getMaintenanceMod
(IsoGameCharacter isoGameCharacter) int
int
int
float
int
int
byte
float
float
float
float
se.krka.kahlua.vm.KahluaTable
int
getModID()
getName()
int
int
int
int
int
getOwner()
protected IsoPlayer
getOwnerPlayer
(ItemContainer itemContainer) int
float
getR()
short
float
short
int
int
getReplaceType
(String key) getResearchableRecipes
(IsoGameCharacter isoGameCharacter) int
float
getScore
(SurvivorDesc desc) float
float
float
float
getSoundByID
(String ID) getSoundParameter
(String parameterName) int
float
float
float
float
getTags()
getTaken()
getTex()
int
int
float
getType()
float
float
getUser()
int
getUses()
Deprecated.float
int
float
float
float
float
int
int
int
float
getX()
float
getY()
float
getZ()
boolean
hasBlood()
boolean
hasDirt()
boolean
boolean
hasMetal()
boolean
boolean
boolean
boolean
hasReplaceType
(String key) boolean
boolean
boolean
boolean
boolean
boolean
boolean
headConditionCheck
(int int0) boolean
headConditionCheck
(int int0, float float0) boolean
headConditionCheck
(int int0, float float0, boolean boolean0) boolean
headConditionCheck
(int int0, float float0, boolean boolean0, boolean boolean1) float
void
void
void
boolean
boolean
boolean
boolean
boolean
boolean
isBloody()
boolean
isBroken()
boolean
isBurnt()
boolean
boolean
boolean
boolean
boolean
isCooked()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isDull()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isFakeEquipped
(IsoGameCharacter isoGameCharacter) boolean
boolean
boolean
boolean
isFood()
boolean
IsFood()
boolean
boolean
isHidden()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
IsMap()
boolean
boolean
boolean
isPureWater
(boolean boolean0) boolean
boolean
boolean
boolean
IsRotten()
boolean
isSpice()
boolean
boolean
isTrap()
boolean
boolean
boolean
boolean
boolean
boolean
IsWeapon()
boolean
isWet()
boolean
isWorn()
void
load
(ByteBuffer input, int WorldVersion) loadCorpseFromByteData
(IsoGridSquare isoGridSquare) 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.static InventoryItem
loadItem
(ByteBuffer byteBuffer, int int2, boolean boolean0, InventoryItem inventoryItem1) boolean
ModDataMatches
(InventoryItem item) void
monogramAfterDescriptor
(SurvivorDesc survivorDesc) void
nameAfterDescriptor
(SurvivorDesc survivorDesc) void
void
void
onBreak()
void
void
void
protected void
playSoundOnPlayer
(String string) void
void
void
void
void
void
void
static boolean
RemoveFromContainer
(InventoryItem inventoryItem) void
researchRecipes
(IsoGameCharacter isoGameCharacter) void
reset()
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
setAnimalTracks
(AnimalTracks animalTracksx) 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
setBloodLevel
(float var1) 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
setConditionFrom
(InventoryItem inventoryItem0) void
setConditionFromHeadCondition
(InventoryItem inventoryItem0) void
void
setConditionLowerNormal
(float _conditionLowerNormal) void
setConditionLowerOffroad
(float _conditionLowerOffroad) void
setConditionMax
(int _ConditionMax) void
setConditionNoSound
(int int0) void
setConditionTo
(InventoryItem inventoryItem0) void
setConditionWhileLoading
(int int0) 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
setCurrentUses
(int int0) void
setCurrentUsesFrom
(InventoryItem inventoryItem1) 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
setDurability
(float float0) void
setEngineLoudness
(float _engineLoudness) void
setEquipParent
(IsoGameCharacter parent) void
setEquipParent
(IsoGameCharacter isoGameCharacter, boolean boolean0) 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
setHeadCondition
(int int0) void
setHeadConditionFromCondition
(InventoryItem inventoryItem0) void
void
setIconsForTexture
(ArrayList<String> _iconsForTexture) void
setID
(int itemId) void
setInfected
(boolean infected) void
setInitialised
(boolean initialised) void
setIsCookable
(boolean _IsCookable) void
setIsCraftingConsumed
(boolean boolean0) 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
setModelIndex
(int int0) void
void
void
setNewPlaceDir
(IsoDirections _newPlaceDir) void
setOffAge
(int _OffAge) void
setOffAgeMax
(int _OffAgeMax) void
setOffString
(String _OffString) boolean
setOrigin
(int int0, int int1) boolean
setOrigin
(int int0, int int1, int int2) boolean
setOrigin
(IsoGridSquare isoGridSquare) void
setOriginX
(int int0) void
setOriginY
(int int0) void
setOriginZ
(int int0) void
setPlaceDir
(IsoDirections _placeDir) void
setPreviousOwner
(IsoGameCharacter _previousOwner) void
setQuality
(int int0) 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
setSharpness
(float float1) void
setSharpnessFrom
(InventoryItem inventoryItem0) void
setStashChance
(int _stashChance) void
setStashMap
(String _stashMap) void
setStaticModel
(String string) void
setStaticModelsByIndex
(ArrayList<String> arrayList) void
setStressChange
(float _stressChange) void
setSuspensionCompression
(float _suspensionCompression) void
setSuspensionDamping
(float _suspensionDamping) void
void
setTexture
(Texture _texture) void
setTextureBurnt
(Texture _textureBurnt) void
setTextureColorMask
(String string) void
setTextureCooked
(Texture _textureCooked) void
setTextureFluidMask
(String string) void
setTexturerotten
(Texture _texturerotten) void
setTimesHeadRepaired
(int int0) void
setTimesRepaired
(int int0) void
setTooltip
(String _tooltip) void
setTorchCone
(boolean _isTorchCone) void
void
setUnCookedString
(String _UnCookedString) void
setUnhappyChange
(float _unhappyChange) void
setUses
(int _uses) Deprecated.void
setUsesFrom
(InventoryItem inventoryItem1) void
setWeight
(float _Weight) void
setWet
(boolean _isWet) void
setWetCooldown
(float _wetCooldown) void
setWheelFriction
(float _wheelFriction) void
void
void
setWorldScale
(float scale) void
setWorldStaticItem
(String string) void
setWorldStaticModel
(String string) void
setWorldStaticModelsByIndex
(ArrayList<String> arrayList) void
setWorldTexture
(String _WorldTexture) void
setWorldXRotation
(int int0) void
setWorldYRotation
(int int0) void
setWorldZRotation
(int rot) boolean
boolean
sharpnessCheck
(int int0) boolean
sharpnessCheck
(int int0, float float0) boolean
sharpnessCheck
(int int0, float float0, boolean boolean0) boolean
sharpnessCheck
(int int0, float float0, boolean boolean0, boolean boolean1) boolean
protected void
void
void
void
toString()
tryGetWorldStaticModelByIndex
(int int0) void
void
update()
void
void
void
void
updateSound
(BaseSoundEmitter emitter) void
Use()
void
Use
(boolean bCrafting) void
Use
(boolean boolean0, boolean boolean1, boolean boolean2) void
boolean
UseForCrafting
(int var1) void
UseItem()
Methods inherited from class zombie.entity.GameEntity
addToWorld, attrib, componentSize, connectComponents, containsComponent, getAttributes, getComponent, getComponentForIndex, getComponentFromID, getDefaultEntityDisplayName, getDurabilityComponent, getEntityDisplayName, getEntityFullTypeDebug, getExceptionCompatibleString, getFluidContainer, getSpriteConfig, getUsingPlayer, hasComponent, hasComponents, hasRenderers, isAddedToEngine, isMeta, isRemovingFromEngine, isScheduledForBucketUpdate, isScheduledForEngineRemoval, isUsingPlayer, isValidEngineEntity, loadEntity, onEquip, onEquip, onFirstCreation, onFluidContainerUpdate, onReceiveEntityPacket, onUnEquip, receiveSyncEntity, receiveUpdateUsingPlayer, removeFromWorld, removeFromWorld, renderlast, renderlastComponents, requiresEntitySave, saveEntity, sendClientEntityPacket, sendComponentEvent, sendComponentEvent, sendEntityEvent, sendEntityEvent, sendServerEntityPacket, sendServerEntityPacketTo, sendSyncEntity, sendUpdateUsingPlayer, setUsingPlayer
-
Field Details
-
previousOwner
-
ScriptItem
-
cat
-
container
-
containerX
protected int containerX -
containerY
protected int containerY -
name
-
replaceOnUse
-
replaceOnUseFullType
-
ConditionMax
protected int ConditionMax -
rightClickContainer
-
texture
-
texturerotten
-
textureCooked
-
textureBurnt
-
type
-
fullType
-
uses
protected int uses -
Age
protected float Age -
LastAged
protected float LastAged -
IsCookable
protected boolean IsCookable -
CookingTime
protected float CookingTime -
MinutesToCook
protected float MinutesToCook -
MinutesToBurn
protected float MinutesToBurn -
Cooked
public boolean Cooked -
Burnt
protected boolean Burnt -
OffAge
protected int OffAge -
OffAgeMax
protected int OffAgeMax -
Weight
protected float Weight -
ActualWeight
protected float ActualWeight -
WorldTexture
-
Description
-
Condition
protected int Condition -
OffString
-
FreshString
-
StaleString
-
CookedString
-
ToastedString
-
GrilledString
-
UnCookedString
-
FrozenString
-
BurntString
-
EmptyString
-
module
-
boredomChange
protected float boredomChange -
unhappyChange
protected float unhappyChange -
stressChange
protected float stressChange -
Taken
-
placeDir
-
newPlaceDir
-
ReplaceOnUseOn
-
col
-
CanStack
public boolean CanStack -
fatigueChange
public float fatigueChange -
worldItem
-
deadBodyObject
-
id
public int id -
RequiresEquippedBothHands
public boolean RequiresEquippedBothHands -
byteData
-
extraItems
-
alcoholic
protected boolean alcoholic -
requireInHandOrInventory
-
visual
-
staticModel
-
worldZRotation
public int worldZRotation -
worldScale
public float worldScale -
worldXRotation
public int worldXRotation -
worldYRotation
public int worldYRotation -
atlasTexture
-
textureColorMask
-
textureFluidMask
-
jobDelta
public float jobDelta -
jobType
-
mainCategory
-
CloseKillMove
-
-
Constructor Details
-
InventoryItem
-
InventoryItem
-
-
Method Details
-
getSaveType
public int getSaveType() -
getWorldItem
-
setEquipParent
-
setEquipParent
-
getEquipParent
-
getBringToBearSound
-
getEquipSound
-
getUnequipSound
-
getDropSound
-
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
-
loadCorpseFromByteData
-
createAndStoreDefaultDeadBody
-
isRequiresEquippedBothHands
public boolean isRequiresEquippedBothHands() -
getA
public float getA() -
getR
public float getR() -
getG
public float getG() -
getB
public float getB() -
getType
-
getTex
-
getCategory
-
UseForCrafting
public boolean UseForCrafting(int var1) -
IsRotten
public boolean IsRotten() -
HowRotten
public float HowRotten() -
CanStack
-
ModDataMatches
-
DoTooltip
-
DoTooltipEmbedded
-
getCleanString
-
DoTooltip
-
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 boolean0, boolean boolean1, boolean boolean2) -
shouldUpdateInWorld
public boolean shouldUpdateInWorld() -
update
public void update() -
finishupdate
public boolean finishupdate() -
updateSound
-
updateEquippedAndActivatedSound
-
updateEquippedAndActivatedSound
public void updateEquippedAndActivatedSound() -
stopEquippedAndActivatedSound
protected void stopEquippedAndActivatedSound() -
playActivateSound
public void playActivateSound() -
playDeactivateSound
public void playDeactivateSound() -
playActivateDeactivateSound
public void playActivateDeactivateSound() -
playSoundOnPlayer
-
getOwnerPlayer
-
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.- 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 byteBuffer, int int2, boolean boolean0, InventoryItem inventoryItem1) throws IOException - 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) -
getContainerY
public int getContainerY()- Returns:
- the containerY
-
setContainerY
public void setContainerY(int _containerY) -
isDisappearOnUse
public boolean isDisappearOnUse()- Returns:
- the DisappearOnUse
-
isKeepOnDeplete
public boolean isKeepOnDeplete() -
getName
- Returns:
- the name
-
setName
-
getReplaceOnUse
- Returns:
- the replaceOnUse
-
setReplaceOnUse
-
getReplaceOnUseFullType
-
getConditionMax
public int getConditionMax()- Returns:
- the ConditionMax
-
setConditionMax
public void setConditionMax(int _ConditionMax) -
getRightClickContainer
- Returns:
- the rightClickContainer
-
setRightClickContainer
-
getSwingAnim
- Returns:
- the swingAnim
-
getTexture
- Returns:
- the texture
-
getIcon
-
setTexture
-
setIcon
-
getTexturerotten
- Returns:
- the texturerotten
-
setTexturerotten
-
getTextureCooked
- Returns:
- the textureCooked
-
setTextureCooked
-
getTextureBurnt
- Returns:
- the textureBurnt
-
setTextureBurnt
-
setType
-
setCurrentUses
public void setCurrentUses(int int0) -
getCurrentUses
public int getCurrentUses() -
setCurrentUsesFrom
-
getMaxUses
public int getMaxUses() -
getCurrentUsesFloat
public float getCurrentUsesFloat() -
getUses
-
setUses
Deprecated. -
setUsesFrom
-
getAge
public float getAge()- Returns:
- the Age
-
setAge
public void setAge(float _Age) -
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) -
getCookingTime
public float getCookingTime()- Returns:
- the CookingTime
-
setCookingTime
public void setCookingTime(float _CookingTime) -
getMinutesToCook
public float getMinutesToCook()- Returns:
- the MinutesToCook
-
setMinutesToCook
public void setMinutesToCook(float _MinutesToCook) -
getMinutesToBurn
public float getMinutesToBurn()- Returns:
- the MinutesToBurn
-
setMinutesToBurn
public void setMinutesToBurn(float _MinutesToBurn) -
isCooked
public boolean isCooked()- Returns:
- the Cooked
-
setCooked
public void setCooked(boolean _Cooked) -
isBurnt
public boolean isBurnt()- Returns:
- the Burnt
-
setBurnt
public void setBurnt(boolean _Burnt) -
getOffAge
public int getOffAge()- Returns:
- the OffAge
-
setOffAge
public void setOffAge(int _OffAge) -
getOffAgeMax
public int getOffAgeMax()- Returns:
- the OffAgeMax
-
setOffAgeMax
public void setOffAgeMax(int _OffAgeMax) -
getWeight
public float getWeight()- Returns:
- the Weight
-
setWeight
public void setWeight(float _Weight) -
getActualWeight
public float getActualWeight()- Returns:
- the ActualWeight
-
setActualWeight
public void setActualWeight(float _ActualWeight) -
getWorldTexture
- Returns:
- the WorldTexture
-
setWorldTexture
-
getDescription
- Returns:
- the Description
-
setDescription
-
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) -
setConditionNoSound
public void setConditionNoSound(int int0) -
setConditionWhileLoading
public void setConditionWhileLoading(int int0) -
getOffString
- Returns:
- the OffString
-
setOffString
-
getCookedString
- Returns:
- the CookedString
-
setCookedString
-
getUnCookedString
- Returns:
- the UnCookedString
-
setUnCookedString
-
getBurntString
- Returns:
- the BurntString
-
setBurntString
-
getModule
- Returns:
- the module
-
setModule
-
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) -
getUnhappyChange
public float getUnhappyChange()- Returns:
- the unhappyChange
-
setUnhappyChange
public void setUnhappyChange(float _unhappyChange) -
getStressChange
public float getStressChange()- Returns:
- the stressChange
-
setStressChange
public void setStressChange(float _stressChange) -
getTags
-
hasTag
-
getTaken
-
setTaken
-
getPlaceDir
- Returns:
- the placeDir
-
setPlaceDir
-
getNewPlaceDir
- Returns:
- the newPlaceDir
-
setNewPlaceDir
-
setReplaceOnUseOn
-
getReplaceOnUseOn
-
getReplaceOnUseOnString
-
getReplaceTypes
-
getReplaceTypesMap
-
getReplaceType
-
hasReplaceType
-
isWaterSource
public boolean isWaterSource()- Returns:
- the IsWaterSource
-
CopyModData
public void CopyModData(se.krka.kahlua.vm.KahluaTable kahluaTable) -
copyModData
public void copyModData(se.krka.kahlua.vm.KahluaTable kahluaTable) -
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) -
getTimesRepaired
public int getTimesRepaired() -
setTimesRepaired
public void setTimesRepaired(int int0) -
copyTimesRepairedFrom
-
copyTimesRepairedTo
-
getTimesHeadRepaired
public int getTimesHeadRepaired() -
setTimesHeadRepaired
public void setTimesHeadRepaired(int int0) -
hasTimesHeadRepaired
public boolean hasTimesHeadRepaired() -
copyTimesHeadRepairedFrom
-
copyTimesHeadRepairedTo
-
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
-
getFillFromLakeSound
-
getFillFromTapSound
-
getFillFromToiletSound
-
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
- 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
-
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
-
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
-
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 float0) -
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
-
setStaticModel
-
getStaticModelException
-
getIconsForTexture
-
setIconsForTexture
-
getScore
-
getPreviousOwner
- Returns:
- the previousOwner
-
setPreviousOwner
-
getScriptItem
- Returns:
- the ScriptItem
-
setScriptItem
-
getCat
- Returns:
- the cat
-
setCat
-
getContainer
- Returns:
- the container
-
setContainer
-
getBloodClothingType
-
setBloodClothingType
-
setBlood
-
getBlood
-
setDirt
-
getDirt
-
getClothingItemName
-
getStashChance
public int getStashChance() -
setStashChance
public void setStashChance(int _stashChance) -
getEatType
-
getPourType
-
isUseWorldItem
public boolean isUseWorldItem() -
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
-
getWorldStaticModel
-
setWorldStaticItem
-
setWorldStaticModel
-
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) -
getWorldZRotation
public int getWorldZRotation() -
setWorldYRotation
public void setWorldYRotation(int int0) -
getWorldYRotation
public int getWorldYRotation() -
setWorldXRotation
public void setWorldXRotation(int int0) -
getWorldXRotation
public int getWorldXRotation() -
randomizeWorldZRotation
public void randomizeWorldZRotation() -
setWorldScale
public void setWorldScale(float scale) -
getLuaCreate
-
isInitialised
public boolean isInitialised() -
setInitialised
public void setInitialised(boolean initialised) -
initialiseItem
public void initialiseItem() -
getMilkReplaceItem
-
getMaxMilk
public int getMaxMilk() -
isAnimalFeed
public boolean isAnimalFeed() -
getAnimalFeedType
-
getDigType
-
getSoundParameter
-
isWorn
public boolean isWorn() -
reset
public void reset()- Overrides:
reset
in classGameEntity
-
toString
-
getTextureColorMask
-
getTextureFluidMask
-
setTextureColorMask
-
setTextureFluidMask
-
getSquare
- Specified by:
getSquare
in classGameEntity
-
getGameEntityType
- Specified by:
getGameEntityType
in classGameEntity
-
getEntityNetID
public long getEntityNetID()- Specified by:
getEntityNetID
in classGameEntity
-
getX
public float getX()- Specified by:
getX
in classGameEntity
-
getY
public float getY()- Specified by:
getY
in classGameEntity
-
getZ
public float getZ()- Specified by:
getZ
in classGameEntity
-
isEntityValid
public boolean isEntityValid()- Specified by:
isEntityValid
in classGameEntity
-
RemoveFromContainer
-
getAnimalTracks
-
setAnimalTracks
-
syncItemFields
public void syncItemFields() -
getWithDrainable
-
getWithoutDrainable
-
getStaticModelsByIndex
-
setStaticModelsByIndex
-
getWorldStaticModelsByIndex
-
setWorldStaticModelsByIndex
-
tryGetWorldStaticModelByIndex
-
getModelIndex
public int getModelIndex() -
setModelIndex
public void setModelIndex(int int0) -
getVisionModifier
public float getVisionModifier() -
getHearingModifier
public float getHearingModifier() -
getWorldObjectSprite
-
getStrainModifier
public float getStrainModifier() -
getConditionLowerChance
public int getConditionLowerChance() -
setConditionFrom
-
setConditionTo
-
reduceCondition
public void reduceCondition() -
damageCheck
public boolean damageCheck() -
damageCheck
public boolean damageCheck(int int0) -
damageCheck
public boolean damageCheck(int int0, float float0) -
damageCheck
public boolean damageCheck(int int0, float float0, boolean boolean0) -
damageCheck
public boolean damageCheck(int int0, float float0, boolean boolean0, boolean boolean1) -
damageCheck
public boolean damageCheck(int int0, float float0, boolean boolean0, boolean boolean1, IsoGameCharacter isoGameCharacter) -
sharpnessCheck
public boolean sharpnessCheck() -
sharpnessCheck
public boolean sharpnessCheck(int int0) -
sharpnessCheck
public boolean sharpnessCheck(int int0, float float0) -
sharpnessCheck
public boolean sharpnessCheck(int int0, float float0, boolean boolean0) -
sharpnessCheck
public boolean sharpnessCheck(int int0, float float0, boolean boolean0, boolean boolean1) -
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 float1) -
setSharpnessFrom
-
getSharpnessIncrement
public float getSharpnessIncrement() -
isDamaged
public boolean isDamaged() -
isDull
public boolean isDull() -
getMaintenanceMod
public int getMaintenanceMod() -
getMaintenanceMod
public int getMaintenanceMod(boolean boolean0) -
getMaintenanceMod
-
getMaintenanceMod
-
getWeaponLevel
public int getWeaponLevel() -
headConditionCheck
public boolean headConditionCheck() -
headConditionCheck
public boolean headConditionCheck(int int0) -
headConditionCheck
public boolean headConditionCheck(int int0, float float0) -
headConditionCheck
public boolean headConditionCheck(int int0, float float0, boolean boolean0) -
headConditionCheck
public boolean headConditionCheck(int int0, float float0, boolean boolean0, boolean boolean1) -
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 int0) -
setHeadConditionFromCondition
-
setConditionFromHeadCondition
-
hasQuality
public boolean hasQuality() -
getQuality
public int getQuality() -
setQuality
public void setQuality(int int0) -
getOnBreak
-
onBreak
public void onBreak() -
getBloodLevelAdjustedLow
public float getBloodLevelAdjustedLow() -
getBloodLevelAdjustedHigh
public float getBloodLevelAdjustedHigh() -
getBloodLevel
public float getBloodLevel() -
setBloodLevel
public void setBloodLevel(float var1) -
copyBloodLevelFrom
-
isBloody
public boolean isBloody() -
getDamagedSound
-
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
-
monogramAfterDescriptor
-
getLootType
-
getIsCraftingConsumed
public boolean getIsCraftingConsumed() -
setIsCraftingConsumed
public void setIsCraftingConsumed(boolean boolean0) -
OnAddedToContainer
-
OnBeforeRemoveFromContainer
-
getDeadBodyObject
-
isPureWater
public boolean isPureWater(boolean boolean0) -
copyClothing
-
inheritFoodAgeFrom
-
inheritOlderFoodAge
-
isFood
public boolean isFood() -
unsealIfNotFull
public void unsealIfNotFull() -
randomizeCondition
public void randomizeCondition() -
randomizeGeneralCondition
public void randomizeGeneralCondition() -
randomizeHeadCondition
public void randomizeHeadCondition() -
randomizeSharpness
public void randomizeSharpness() -
isEmptyOfFluid
public boolean isEmptyOfFluid() -
isFullOfFluid
public boolean isFullOfFluid() -
isFluidContainer
public boolean isFluidContainer() -
isSpice
public boolean isSpice() -
isKeyRing
public boolean isKeyRing() -
isFakeEquipped
-
isFakeEquipped
public boolean isFakeEquipped() -
getItemAfterCleaning
-
getResearchableRecipes
-
getResearchableRecipes
-
hasResearchableRecipes
public boolean hasResearchableRecipes() -
researchRecipes
-
hasOrigin
public boolean hasOrigin() -
canHaveOrigin
public boolean canHaveOrigin() -
setOrigin
-
setOrigin
public boolean setOrigin(int int0, int int1) -
setOrigin
public boolean setOrigin(int int0, int int1, int int2) -
setOriginX
public void setOriginX(int int0) -
setOriginY
public void setOriginY(int int0) -
setOriginZ
public void setOriginZ(int int0) -
getOriginX
public int getOriginX() -
getOriginY
public int getOriginY() -
getOriginZ
public int getOriginZ() -
canBeEquipped
-
getPlayer
-