Package zombie.inventory.types
Class Clothing
java.lang.Object
zombie.inventory.InventoryItem
zombie.inventory.types.Clothing
- Direct Known Subclasses:
AlarmClockClothing
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
static enum
-
Field Summary
Fields inherited from class zombie.inventory.InventoryItem
atlasTexture, byteData, CanStack, CanStoreWater, CloseKillMove, col, Cooked, extraItems, fatigueChange, id, IsWaterSource, jobDelta, jobType, keepOnDeplete, mainCategory, ReplaceOnUseOn, RequiresEquippedBothHands, worldItem, worldScale, worldZRotation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPatch
(IsoGameCharacter chr, BloodBodyPartType part, InventoryItem fabric) boolean
boolean
canFullyRestore
(IsoGameCharacter chr, BloodBodyPartType part, InventoryItem fabric) boolean
CanStack
(InventoryItem item) void
copyPatchesTo
(Clothing newClothing) static Clothing
CreateFromSprite
(String Sprite) void
DoTooltip
(ObjectTooltip tooltipUI, ObjectTooltip.Layout layout) boolean
void
float
static int
getBiteDefenseFromItem
(IsoGameCharacter chr, InventoryItem fabric) Used from lua tooltip when repairing clothingfloat
float
float
float
float
int
float
float
int
int
float
getDefForPart
(BloodBodyPartType part, boolean bite, boolean bullet) float
int
float
getName()
int
float
int
float
int
float
static int
getScratchDefenseFromItem
(IsoGameCharacter chr, InventoryItem fabric) Used from lua tooltip when repairing clothingfloat
float
float
float
float
float
float
boolean
isBloody()
boolean
boolean
boolean
isDirty()
void
load
(ByteBuffer input, int WorldVersion) void
removePatch
(BloodBodyPartType part) void
save
(ByteBuffer output, boolean net) void
setBiteDefense
(float biteDefense) void
setBloodLevel
(float delta) void
setBulletDefense
(float bulletDefense) void
setCanHaveHoles
(Boolean canHaveHoles) void
setChanceToFall
(int chanceToFall) void
setCombatSpeedModifier
(float combatSpeedModifier) void
setCondition
(int Condition) void
setConditionLowerChance
(int conditionLowerChance) void
setDirtyness
(float delta) void
setInsulation
(float insulation) void
setNeckProtectionModifier
(float neckProtectionModifier) void
setPalette
(String palette) void
setRemoveOnBroken
(Boolean removeOnBroken) void
setRunSpeedModifier
(float runSpeedModifier) void
setScratchDefense
(float scratchDefense) void
setSpriteName
(String SpriteName) void
setStompPower
(float stompPower) void
setTemperature
(float temperature) void
setWaterResistance
(float waterResistance) void
setWeightWet
(float weight) void
setWetness
(float percent) void
setWindresistance
(float windresistance) toString()
void
Unwear()
void
update()
void
void
updateWetness
(boolean bIgnoreEquipped) void
Use
(boolean bCrafting, boolean bInContainer) Methods inherited from class zombie.inventory.InventoryItem
addExtraItem, allowRandomTint, canBeActivated, canBeRemote, canEmitLight, canStoreWater, copyConditionModData, copyModData, CopyModData, doBuildingStash, DoTooltip, getA, getActualWeight, getAge, getAlcoholPower, getAlternateModelName, getAmmoType, getAttachedSlot, getAttachedSlotType, getAttachedToModel, getAttachmentReplacement, getAttachmentsProvided, getAttachmentType, getB, getBandagePower, getBlood, getBloodClothingType, getBodyLocation, getBoredomChange, getBrakeForce, getBreakSound, getBringToBearSound, getBurntString, getByteData, getCat, getChanceToSpawnDamaged, getCleanString, getClothingItem, getClothingItemExtra, getClothingItemExtraOption, getClothingItemName, getColor, getColorBlue, getColorGreen, getColorInfo, getColorRed, getCondition, getConditionLowerNormal, getConditionLowerOffroad, getConditionMax, getConsolidateOption, getContainer, getContainerX, getContainerY, getContentsWeight, getCookedString, getCookingTime, getCount, getCountDownSound, getCurrentAmmoCount, getCurrentCondition, getCurrentUses, getCustomMenuOption, getDescription, getDirt, getDisplayCategory, getDisplayName, getEatType, getEngineLoudness, getEquipParent, getEquippedWeight, getEquipSound, getEvolvedRecipeName, getExplosionSound, getExtraItems, getExtraItemsWeight, getFabricType, getFatigueChange, getFillFromDispenserSound, getFillFromTapSound, getFullType, getG, getGunType, getHaveBeenRepaired, getHotbarEquippedWeight, getIconsForTexture, getID, getInvHeat, getItemCapacity, getItemHeat, getItemReplacementPrimaryHand, getItemReplacementSecondHand, getItemWhenDry, getJobDelta, getJobType, getKeyId, getLastAged, getLightDistance, getLightStrength, getLuaCreate, getMakeUpType, getMaxAmmo, getMaxCapacity, getMechanicType, getMediaData, getMediaType, getMeltingTime, getMetalValue, getMinutesToBurn, getMinutesToCook, getModData, getModID, getModName, getModule, getNewPlaceDir, getOffAge, getOffAgeMax, getOffString, getOutermostContainer, getPlaceDir, getPlaceMultipleSound, getPlaceOneSound, getPreviousOwner, getR, getRecordedMediaIndex, getReduceInfectionPower, getRegistry_id, getRemoteControlID, getRemoteRange, getReplaceOnUse, getReplaceOnUseFullType, getReplaceOnUseOn, getReplaceOnUseOnString, getReplaceType, getReplaceTypes, getReplaceTypesMap, getRequireInHandOrInventory, getRightClickContainer, getScore, getScriptItem, getSoundByID, getSoundParameter, getStashChance, getStaticModel, getStressChange, getStringItemType, getSuspensionCompression, getSuspensionDamping, getSwingAnim, getTags, getTaken, getTex, getTexture, getTextureBurnt, getTextureCooked, getTexturerotten, getTooltip, getTorchDot, getType, getUnCookedString, getUnequippedWeight, getUnequipSound, getUnhappyChange, getUses, getVisual, getWetCooldown, getWheelFriction, getWorker, getWorldItem, getWorldStaticItem, getWorldTexture, hasBlood, hasDirt, hasModData, hasReplaceType, hasTag, haveExtraItems, HowRotten, initialiseItem, isActivated, isAlcoholic, isAlwaysWelcomeGift, isBeingFilled, isBroken, isBurnt, isCanBandage, isConditionAffectsCapacity, isCookable, isCooked, isCustomColor, isCustomName, isCustomWeight, isDisappearOnUse, IsDrainable, isEmittingLight, isEquipped, isEquippedNoSprint, isFavorite, isFishingLure, IsFood, isHairDye, isHidden, isInfected, isInitialised, isInLocalPlayerInventory, isInPlayerInventory, IsInventoryContainer, isIsCookable, IsLiterature, IsMap, isProtectFromRainWhileEquipped, isRecordedMedia, isRemoteController, isRequiresEquippedBothHands, IsRotten, isTaintedWater, isTorchCone, isTrap, isTwoHandWeapon, isUseWorldItem, isVanilla, isWaterSource, IsWeapon, isWet, loadItem, loadItem, ModDataMatches, saveWithSize, setActivated, setActivatedRemote, setActualWeight, setAge, setAlcoholic, setAlcoholPower, setAmmoType, setAttachedSlot, setAttachedSlotType, setAttachedToModel, setAttachmentReplacement, setAttachmentsProvided, setAttachmentType, setAutoAge, setBandagePower, setBeingFilled, setBlood, setBloodClothingType, setBoredomChange, setBrakeForce, setBreakSound, setBroken, setBurnt, setBurntString, setCanBeActivated, setCanBeRemote, setCat, setChanceToSpawnDamaged, setColor, setColorBlue, setColorGreen, setColorRed, setCondition, setConditionFromModData, setConditionLowerNormal, setConditionLowerOffroad, setConditionMax, setContainer, SetContainerPosition, setContainerX, setContainerY, setCooked, setCookedString, setCookingTime, setCount, setCountDownSound, setCurrentAmmoCount, setCustomColor, setCustomMenuOption, setCustomName, setCustomWeight, setDescription, setDirt, setDisplayCategory, setEngineLoudness, setEquipParent, setEvolvedRecipeName, setExplosionSound, setFatigueChange, setFavorite, setGunType, setHaveBeenRepaired, setIconsForTexture, setID, setInfected, setInitialised, setIsCookable, setIsWaterSource, setItemCapacity, setItemHeat, setItemWhenDry, setJobDelta, setJobType, setKeyId, setLastAged, setLightDistance, setLightStrength, setMaxAmmo, setMaxCapacity, setMediaType, setMeltingTime, setMetalValue, setMinutesToBurn, setMinutesToCook, setModule, setName, setNewPlaceDir, setOffAge, setOffAgeMax, setOffString, setPlaceDir, setPreviousOwner, setRecordedMediaData, setRecordedMediaIndex, setRecordedMediaIndexInteger, setReduceInfectionPower, setRegistry_id, setRemoteControlID, setRemoteController, setRemoteRange, setReplaceOnUse, setReplaceOnUseOn, setRequireInHandOrInventory, setRightClickContainer, setScriptItem, setStashChance, setStashMap, setStressChange, setSuspensionCompression, setSuspensionDamping, setTaintedWater, setTaken, setTexture, setTextureBurnt, setTextureCooked, setTexturerotten, setTooltip, setTorchCone, setType, setUnCookedString, setUnhappyChange, setUses, setWeight, setWet, setWetCooldown, setWheelFriction, setWorker, setWorldItem, setWorldScale, setWorldTexture, setWorldZRotation, shouldUpdateInWorld, storeInByteData, synchWithVisual, updateAge, updateSound, Use, Use, UseItem
-
Field Details
-
bloodLevel
public float bloodLevel -
CONDITION_PER_HOLES
public static final int CONDITION_PER_HOLES- See Also:
-
-
Constructor Details
-
Clothing
-
Clothing
-
-
Method Details
-
getCategory
- Overrides:
getCategory
in classInventoryItem
-
IsClothing
public boolean IsClothing()- Overrides:
IsClothing
in classInventoryItem
-
getSaveType
public int getSaveType()- Overrides:
getSaveType
in classInventoryItem
-
Unwear
public void Unwear() -
DoTooltip
- Overrides:
DoTooltip
in classInventoryItem
-
isDirty
public boolean isDirty() -
isBloody
public boolean isBloody() -
getName
- Overrides:
getName
in classInventoryItem
- Returns:
- the name
-
update
public void update()- Overrides:
update
in classInventoryItem
-
updateWetness
public void updateWetness() -
updateWetness
public void updateWetness(boolean bIgnoreEquipped) -
getBulletDefense
public float getBulletDefense() -
setBulletDefense
public void setBulletDefense(float bulletDefense) -
flushWetness
public void flushWetness() -
finishupdate
public boolean finishupdate()- Overrides:
finishupdate
in classInventoryItem
-
Use
public void Use(boolean bCrafting, boolean bInContainer) - Overrides:
Use
in classInventoryItem
-
CanStack
- Overrides:
CanStack
in classInventoryItem
-
CreateFromSprite
-
save
- Overrides:
save
in classInventoryItem
- Throws:
IOException
-
load
- Overrides:
load
in classInventoryItem
- Throws:
IOException
-
getSpriteName
- Returns:
- the SpriteName
-
setSpriteName
- Parameters:
SpriteName
- the SpriteName to set
-
getPalette
- Returns:
- the palette
-
setPalette
- Parameters:
palette
- the palette to set
-
getTemperature
public float getTemperature() -
setTemperature
public void setTemperature(float temperature) -
setDirtyness
public void setDirtyness(float delta) -
setBloodLevel
public void setBloodLevel(float delta) -
getDirtyness
public float getDirtyness() -
getBloodlevel
public float getBloodlevel() -
getBloodlevelForPart
-
getBloodLevel
public float getBloodLevel() -
getBloodLevelForPart
-
getWeight
public float getWeight()- Overrides:
getWeight
in classInventoryItem
- Returns:
- the Weight
-
setWetness
public void setWetness(float percent) -
getWetness
public float getWetness() -
getWeightWet
public float getWeightWet() -
setWeightWet
public void setWeightWet(float weight) -
getConditionLowerChance
public int getConditionLowerChance() -
setConditionLowerChance
public void setConditionLowerChance(int conditionLowerChance) -
setCondition
public void setCondition(int Condition) - Overrides:
setCondition
in classInventoryItem
- Parameters:
Condition
- the Condition to set
-
getClothingDirtynessIncreaseLevel
public float getClothingDirtynessIncreaseLevel() -
getInsulation
public float getInsulation() -
setInsulation
public void setInsulation(float insulation) -
getStompPower
public float getStompPower() -
setStompPower
public void setStompPower(float stompPower) -
getRunSpeedModifier
public float getRunSpeedModifier() -
setRunSpeedModifier
public void setRunSpeedModifier(float runSpeedModifier) -
getCombatSpeedModifier
public float getCombatSpeedModifier() -
setCombatSpeedModifier
public void setCombatSpeedModifier(float combatSpeedModifier) -
isRemoveOnBroken
-
setRemoveOnBroken
-
getCanHaveHoles
-
setCanHaveHoles
-
isCosmetic
public boolean isCosmetic() -
toString
-
getBiteDefense
public float getBiteDefense() -
setBiteDefense
public void setBiteDefense(float biteDefense) -
getScratchDefense
public float getScratchDefense() -
setScratchDefense
public void setScratchDefense(float scratchDefense) -
getNeckProtectionModifier
public float getNeckProtectionModifier() -
setNeckProtectionModifier
public void setNeckProtectionModifier(float neckProtectionModifier) -
getChanceToFall
public int getChanceToFall() -
setChanceToFall
public void setChanceToFall(int chanceToFall) -
getWindresistance
public float getWindresistance() -
setWindresistance
public void setWindresistance(float windresistance) -
getWaterResistance
public float getWaterResistance() -
setWaterResistance
public void setWaterResistance(float waterResistance) -
getHolesNumber
public int getHolesNumber() -
getPatchesNumber
public int getPatchesNumber() -
getDefForPart
-
getBiteDefenseFromItem
Used from lua tooltip when repairing clothing- Parameters:
chr
-- Returns:
-
getScratchDefenseFromItem
Used from lua tooltip when repairing clothing- Parameters:
chr
-- Returns:
-
getPatchType
-
removePatch
-
canFullyRestore
-
addPatch
-
getCoveredParts
-
getNbrOfCoveredParts
public int getNbrOfCoveredParts() -
getCondLossPerHole
public int getCondLossPerHole() -
copyPatchesTo
-
canBe3DRender
public boolean canBe3DRender()
-