Package zombie.inventory.types
Class Clothing
java.lang.Object
zombie.inventory.InventoryItem
zombie.inventory.types.Clothing
- Direct Known Subclasses:
AlarmClockClothing
public class Clothing extends InventoryItem
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
Clothing.ClothingPatch
static class
Clothing.ClothingPatchFabricType
-
Field Summary
Fields Modifier and Type Field Description float
bloodLevel
static int
CONDITION_PER_HOLES
protected java.lang.String
palette
protected java.lang.String
SpriteName
Fields inherited from class zombie.inventory.InventoryItem
ActualWeight, Age, alcoholic, boredomChange, Burnt, BurntString, byteData, CanStack, CanStoreWater, cat, CloseKillMove, col, Condition, ConditionMax, container, containerX, containerY, Cooked, CookedString, CookingTime, Description, extraItems, fatigueChange, FreshString, FrozenString, fullType, id, IsCookable, IsWaterSource, jobDelta, jobType, keepOnDeplete, LastAged, mainCategory, MinutesToBurn, MinutesToCook, module, name, newPlaceDir, OffAge, OffAgeMax, OffString, placeDir, previousOwner, replaceOnUse, replaceOnUseFullType, ReplaceOnUseOn, requireInHandOrInventory, RequiresEquippedBothHands, rightClickContainer, ScriptItem, staticModel, stressChange, Taken, texture, textureBurnt, textureCooked, texturerotten, type, UnCookedString, unhappyChange, uses, visual, Weight, worldItem, worldScale, WorldTexture, worldZRotation
-
Constructor Summary
Constructors Constructor Description Clothing(java.lang.String string, java.lang.String string2, java.lang.String string3, java.lang.String string4, java.lang.String string5, java.lang.String string6)
Clothing(java.lang.String string, java.lang.String string2, java.lang.String string3, Item item, java.lang.String string4, java.lang.String string5)
-
Method Summary
Modifier and Type Method Description void
addPatch(IsoGameCharacter gameCharacter, BloodBodyPartType bloodBodyPartType, InventoryItem inventoryItem)
boolean
canBe3DRender()
boolean
canFullyRestore(IsoGameCharacter gameCharacter, BloodBodyPartType bloodBodyPartType, InventoryItem inventoryItem)
boolean
CanStack(InventoryItem inventoryItem)
void
copyPatchesTo(Clothing clothing)
static Clothing
CreateFromSprite(java.lang.String string)
void
DoTooltip(ObjectTooltip objectTooltip, ObjectTooltip.Layout layout)
boolean
finishupdate()
void
flushWetness()
float
getBiteDefense()
static int
getBiteDefenseFromItem(IsoGameCharacter gameCharacter, InventoryItem inventoryItem)
float
getBloodlevel()
float
getBloodLevel()
float
getBloodlevelForPart(BloodBodyPartType bloodBodyPartType)
float
getBloodLevelForPart(BloodBodyPartType bloodBodyPartType)
float
getBulletDefense()
java.lang.Boolean
getCanHaveHoles()
java.lang.String
getCategory()
int
getChanceToFall()
float
getClothingDirtynessIncreaseLevel()
java.lang.String
getClothingExtraSubmenu()
float
getCombatSpeedModifier()
int
getConditionLowerChance()
int
getCondLossPerHole()
java.util.ArrayList
getCoveredParts()
float
getDefForPart(BloodBodyPartType bloodBodyPartType, boolean boolean1, boolean boolean2)
float
getDirtyness()
int
getHolesNumber()
float
getInsulation()
java.lang.String
getName()
int
getNbrOfCoveredParts()
float
getNeckProtectionModifier()
java.lang.String
getPalette()
int
getPatchesNumber()
Clothing.ClothingPatch
getPatchType(BloodBodyPartType bloodBodyPartType)
float
getRunSpeedModifier()
int
getSaveType()
float
getScratchDefense()
static int
getScratchDefenseFromItem(IsoGameCharacter gameCharacter, InventoryItem inventoryItem)
java.lang.String
getSpriteName()
float
getStompPower()
float
getTemperature()
float
getWaterResistance()
float
getWeight()
float
getWeightWet()
float
getWetness()
float
getWindresistance()
boolean
isBloody()
boolean
IsClothing()
boolean
isCosmetic()
boolean
isDirty()
java.lang.Boolean
isRemoveOnBroken()
void
load(java.nio.ByteBuffer byteBuffer, int int1)
void
removePatch(BloodBodyPartType bloodBodyPartType)
void
save(java.nio.ByteBuffer byteBuffer, boolean boolean1)
void
setBiteDefense(float float1)
void
setBloodLevel(float float1)
void
setBulletDefense(float float1)
void
setCanHaveHoles(java.lang.Boolean Boolean1)
void
setChanceToFall(int int1)
void
setCombatSpeedModifier(float float1)
void
setCondition(int int1)
void
setConditionLowerChance(int int1)
void
setDirtyness(float float1)
void
setInsulation(float float1)
void
setNeckProtectionModifier(float float1)
void
setPalette(java.lang.String string)
void
setRemoveOnBroken(java.lang.Boolean Boolean1)
void
setRunSpeedModifier(float float1)
void
setScratchDefense(float float1)
void
setSpriteName(java.lang.String string)
void
setStompPower(float float1)
void
setTemperature(float float1)
void
setWaterResistance(float float1)
void
setWeightWet(float float1)
void
setWetness(float float1)
void
setWindresistance(float float1)
java.lang.String
toString()
void
Unwear()
void
update()
void
updateWetness()
void
updateWetness(boolean boolean1)
void
Use(boolean boolean1, boolean boolean2)
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, getCustomMenuOption, getDescription, getDirt, getDisplayCategory, getDisplayName, getEatType, getEngineLoudness, getEquipParent, getEquippedWeight, getEquipSound, getEvolvedRecipeName, getExplosionSound, getExtraItems, getExtraItemsWeight, getFabricType, getFatigueChange, getFullType, getG, getGunType, getHaveBeenRepaired, getHotbarEquippedWeight, getIconsForTexture, getID, getInvHeat, getItemCapacity, getItemHeat, getItemReplacementPrimaryHand, getItemReplacementSecondHand, getItemWhenDry, getJobDelta, getJobType, getKeyId, getLastAged, getLightDistance, getLightStrength, getMakeUpType, getMaxAmmo, getMaxCapacity, getMechanicType, getMediaData, getMediaType, getMeltingTime, getMetalValue, getMinutesToBurn, getMinutesToCook, getModData, getModID, getModName, getModule, getNewPlaceDir, getOffAge, getOffAgeMax, getOffString, getOutermostContainer, getPlaceDir, getPreviousOwner, getR, getRecordedMediaIndex, getReduceInfectionPower, getRegistry_id, getRemoteControlID, getRemoteRange, getReplaceOnUse, getReplaceOnUseFullType, getReplaceOnUseOn, getReplaceOnUseOnString, getRequireInHandOrInventory, getRightClickContainer, getScore, getScriptItem, 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, hasTag, haveExtraItems, HowRotten, isActivated, isAlcoholic, isAlwaysWelcomeGift, isBeingFilled, isBroken, isBurnt, isCanBandage, isConditionAffectsCapacity, isCookable, isCooked, isCustomColor, isCustomName, isCustomWeight, isDisappearOnUse, IsDrainable, isEmittingLight, isEquipped, isEquippedNoSprint, isFavorite, isFishingLure, IsFood, isHairDye, isHidden, isInfected, 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, 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, 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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
SpriteName
protected java.lang.String SpriteName -
palette
protected java.lang.String palette -
bloodLevel
public float bloodLevel -
CONDITION_PER_HOLES
public static final int CONDITION_PER_HOLES- See Also:
- Constant Field Values
-
-
Constructor Details
-
Clothing
public Clothing(java.lang.String string, java.lang.String string2, java.lang.String string3, java.lang.String string4, java.lang.String string5, java.lang.String string6) -
Clothing
public Clothing(java.lang.String string, java.lang.String string2, java.lang.String string3, Item item, java.lang.String string4, java.lang.String string5)
-
-
Method Details
-
getCategory
public java.lang.String 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
public java.lang.String getName()- Overrides:
getName
in classInventoryItem
-
update
public void update()- Overrides:
update
in classInventoryItem
-
updateWetness
public void updateWetness() -
updateWetness
public void updateWetness(boolean boolean1) -
getBulletDefense
public float getBulletDefense() -
setBulletDefense
public void setBulletDefense(float float1) -
flushWetness
public void flushWetness() -
finishupdate
public boolean finishupdate()- Overrides:
finishupdate
in classInventoryItem
-
Use
public void Use(boolean boolean1, boolean boolean2)- Overrides:
Use
in classInventoryItem
-
CanStack
- Overrides:
CanStack
in classInventoryItem
-
CreateFromSprite
-
save
public void save(java.nio.ByteBuffer byteBuffer, boolean boolean1) throws java.io.IOException- Overrides:
save
in classInventoryItem
- Throws:
java.io.IOException
-
load
public void load(java.nio.ByteBuffer byteBuffer, int int1) throws java.io.IOException- Overrides:
load
in classInventoryItem
- Throws:
java.io.IOException
-
getSpriteName
public java.lang.String getSpriteName() -
setSpriteName
public void setSpriteName(java.lang.String string) -
getPalette
public java.lang.String getPalette() -
setPalette
public void setPalette(java.lang.String string) -
getTemperature
public float getTemperature() -
setTemperature
public void setTemperature(float float1) -
setDirtyness
public void setDirtyness(float float1) -
setBloodLevel
public void setBloodLevel(float float1) -
getDirtyness
public float getDirtyness() -
getBloodlevel
public float getBloodlevel() -
getBloodlevelForPart
-
getBloodLevel
public float getBloodLevel() -
getBloodLevelForPart
-
getWeight
public float getWeight()- Overrides:
getWeight
in classInventoryItem
-
setWetness
public void setWetness(float float1) -
getWetness
public float getWetness() -
getWeightWet
public float getWeightWet() -
setWeightWet
public void setWeightWet(float float1) -
getConditionLowerChance
public int getConditionLowerChance() -
setConditionLowerChance
public void setConditionLowerChance(int int1) -
setCondition
public void setCondition(int int1)- Overrides:
setCondition
in classInventoryItem
-
getClothingDirtynessIncreaseLevel
public float getClothingDirtynessIncreaseLevel() -
getInsulation
public float getInsulation() -
setInsulation
public void setInsulation(float float1) -
getStompPower
public float getStompPower() -
setStompPower
public void setStompPower(float float1) -
getRunSpeedModifier
public float getRunSpeedModifier() -
setRunSpeedModifier
public void setRunSpeedModifier(float float1) -
getCombatSpeedModifier
public float getCombatSpeedModifier() -
setCombatSpeedModifier
public void setCombatSpeedModifier(float float1) -
isRemoveOnBroken
public java.lang.Boolean isRemoveOnBroken() -
setRemoveOnBroken
public void setRemoveOnBroken(java.lang.Boolean Boolean1) -
getCanHaveHoles
public java.lang.Boolean getCanHaveHoles() -
setCanHaveHoles
public void setCanHaveHoles(java.lang.Boolean Boolean1) -
isCosmetic
public boolean isCosmetic() -
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
getBiteDefense
public float getBiteDefense() -
setBiteDefense
public void setBiteDefense(float float1) -
getScratchDefense
public float getScratchDefense() -
setScratchDefense
public void setScratchDefense(float float1) -
getNeckProtectionModifier
public float getNeckProtectionModifier() -
setNeckProtectionModifier
public void setNeckProtectionModifier(float float1) -
getChanceToFall
public int getChanceToFall() -
setChanceToFall
public void setChanceToFall(int int1) -
getWindresistance
public float getWindresistance() -
setWindresistance
public void setWindresistance(float float1) -
getWaterResistance
public float getWaterResistance() -
setWaterResistance
public void setWaterResistance(float float1) -
getHolesNumber
public int getHolesNumber() -
getPatchesNumber
public int getPatchesNumber() -
getDefForPart
public float getDefForPart(BloodBodyPartType bloodBodyPartType, boolean boolean1, boolean boolean2) -
getBiteDefenseFromItem
public static int getBiteDefenseFromItem(IsoGameCharacter gameCharacter, InventoryItem inventoryItem) -
getScratchDefenseFromItem
public static int getScratchDefenseFromItem(IsoGameCharacter gameCharacter, InventoryItem inventoryItem) -
getPatchType
-
removePatch
-
canFullyRestore
public boolean canFullyRestore(IsoGameCharacter gameCharacter, BloodBodyPartType bloodBodyPartType, InventoryItem inventoryItem) -
addPatch
public void addPatch(IsoGameCharacter gameCharacter, BloodBodyPartType bloodBodyPartType, InventoryItem inventoryItem) -
getCoveredParts
public java.util.ArrayList getCoveredParts() -
getNbrOfCoveredParts
public int getNbrOfCoveredParts() -
getCondLossPerHole
public int getCondLossPerHole() -
copyPatchesTo
-
canBe3DRender
public boolean canBe3DRender()
-