Class Clothing
java.lang.Object
zombie.entity.GameEntity
zombie.inventory.InventoryItem
zombie.inventory.types.Clothing
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
static enum
-
Field Summary
FieldsFields inherited from class zombie.inventory.InventoryItem
ActualWeight, Age, alcoholic, atlasTexture, boredomChange, Burnt, BurntString, byteData, CanStack, cat, CloseKillMove, col, Condition, ConditionMax, container, containerX, containerY, Cooked, CookedString, CookingTime, deadBodyObject, Description, EmptyString, extraItems, fatigueChange, FreshString, FrozenString, fullType, GrilledString, id, IsCookable, jobDelta, jobType, LastAged, mainCategory, MinutesToBurn, MinutesToCook, module, name, newPlaceDir, OffAge, OffAgeMax, OffString, placeDir, previousOwner, replaceOnUse, replaceOnUseFullType, ReplaceOnUseOn, requireInHandOrInventory, RequiresEquippedBothHands, rightClickContainer, ScriptItem, StaleString, staticModel, stressChange, Taken, texture, textureBurnt, textureColorMask, textureCooked, textureFluidMask, texturerotten, ToastedString, type, UnCookedString, unhappyChange, uses, visual, Weight, worldItem, worldScale, WorldTexture, worldXRotation, worldYRotation, worldZRotation
Fields inherited from class zombie.entity.GameEntity
DEFAULT_ENTITY_DISPLAY_NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPatch
(IsoGameCharacter chr, BloodBodyPartType part, InventoryItem fabric) void
addPatchForClient
(int int2, int int0, int int1, boolean boolean0) void
void
void
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) void
void
drainGasMask
(float float1) void
boolean
void
void
float
static int
getBiteDefenseFromItem
(IsoGameCharacter chr, InventoryItem fabric) Used from lua tooltip when repairing clothingfloat
float
float
float
float
int
float
float
int
float
float
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
float
float
boolean
boolean
hasTank()
boolean
isBloody()
boolean
boolean
boolean
isDirty()
boolean
isWorn()
void
load
(ByteBuffer input, int WorldVersion) void
randomizeCondition
(int int0, int int2, int int4, int int6) 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
setFilterType
(String string) void
setInsulation
(float _insulation) void
setNeckProtectionModifier
(float _neckProtectionModifier) void
void
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
setTankType
(String string) void
setTemperature
(float _temperature) void
setUsedDelta
(float float0) void
setWaterResistance
(float _waterResistance) void
setWeightWet
(float weight) void
setWetness
(float percent) void
setWindresistance
(float _windresistance) toString()
void
Unwear()
void
Unwear
(boolean boolean0) void
update()
void
void
updateWetness
(boolean bIgnoreEquipped) void
Use
(boolean bCrafting, boolean bInContainer) Methods inherited from class zombie.inventory.InventoryItem
addExtraItem, allowRandomTint, applyMaxSharpness, canBeActivated, canBeEquipped, canBeRemote, canEmitLight, canHaveOrigin, canStoreWater, copyBloodLevelFrom, copyClothing, copyConditionModData, copyModData, CopyModData, copyTimesHeadRepairedFrom, copyTimesHeadRepairedTo, copyTimesRepairedFrom, copyTimesRepairedTo, createAndStoreDefaultDeadBody, damageCheck, damageCheck, damageCheck, damageCheck, damageCheck, damageCheck, doBreakSound, doBuildingStash, doDamagedSound, DoTooltip, DoTooltipEmbedded, getA, getActualWeight, getAge, getAlcoholPower, getAlternateModelName, getAmmoType, getAnimalFeedType, getAnimalTracks, getAttachedSlot, getAttachedSlotType, getAttachedToModel, getAttachmentReplacement, getAttachmentsProvided, getAttachmentType, getB, getBandagePower, getBlood, getBloodClothingType, getBloodLevelAdjustedHigh, getBloodLevelAdjustedLow, 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, getCurrentUsesFloat, getCustomMenuOption, getDamagedSound, getDeadBodyObject, getDescription, getDigType, getDirt, getDiscomfortModifier, getDisplayCategory, getDisplayName, getDropSound, getDurability, getEatTime, getEatType, getEngineLoudness, getEntityNetID, getEquipParent, getEquippedWeight, getEquipSound, getEvolvedRecipeName, getExplosionSound, getExtraItems, getExtraItemsWeight, getFabricType, getFatigueChange, getFillFromDispenserSound, getFillFromLakeSound, getFillFromTapSound, getFillFromToiletSound, getFireFuelRatio, getFullType, getG, getGameEntityType, getGunType, getHaveBeenRepaired, getHeadCondition, getHeadConditionLowerChance, getHeadConditionLowerChanceMultiplier, getHeadConditionMax, getHearingModifier, getHotbarEquippedWeight, getIcon, getIconsForTexture, getID, getInvHeat, getIsCraftingConsumed, getItemAfterCleaning, getItemCapacity, getItemHeat, getItemReplacementPrimaryHand, getItemReplacementSecondHand, getItemWhenDry, getJobDelta, getJobType, getKeyId, getLastAged, getLightDistance, getLightStrength, getLootType, getLuaCreate, getMaintenanceMod, getMaintenanceMod, getMaintenanceMod, getMaintenanceMod, getMakeUpType, getMaxAmmo, getMaxCapacity, getMaxMilk, getMaxSharpness, getMaxUses, getMechanicType, getMediaData, getMediaType, getMeltingTime, getMetalValue, getMilkReplaceItem, getMinutesToBurn, getMinutesToCook, getModData, getModelIndex, getModID, getModName, getModule, getNewPlaceDir, getOffAge, getOffAgeMax, getOffString, getOnBreak, getOriginX, getOriginY, getOriginZ, getOutermostContainer, getOwner, getOwnerPlayer, getPlaceDir, getPlaceMultipleSound, getPlaceOneSound, getPlayer, getPourLiquidOnGroundSound, getPourType, getPreviousOwner, getQuality, getR, getRecordedMediaIndex, getReduceInfectionPower, getRegistry_id, getRemoteControlID, getRemoteRange, getReplaceOnUse, getReplaceOnUseFullType, getReplaceOnUseOn, getReplaceOnUseOnString, getReplaceType, getReplaceTypes, getReplaceTypesMap, getRequireInHandOrInventory, getResearchableRecipes, getResearchableRecipes, getRightClickContainer, getScore, getScriptItem, getSharpness, getSharpnessIncrement, getSharpnessMultiplier, getShoutMultiplier, getShoutType, getSoundByID, getSoundParameter, getSquare, getStashChance, getStashMap, getStaticModel, getStaticModelException, getStaticModelsByIndex, getStrainModifier, getStressChange, getStringItemType, getSuspensionCompression, getSuspensionDamping, getSwingAnim, getTags, getTaken, getTex, getTexture, getTextureBurnt, getTextureColorMask, getTextureCooked, getTextureFluidMask, getTexturerotten, getTimesHeadRepaired, getTimesRepaired, getTooltip, getTorchDot, getType, getUnCookedString, getUnequippedWeight, getUnequipSound, getUnhappyChange, getUser, getUses, getVisionModifier, getVisual, getWeaponLevel, getWetCooldown, getWheelFriction, getWithDrainable, getWithoutDrainable, getWorker, getWorldItem, getWorldObjectSprite, getWorldStaticItem, getWorldStaticModel, getWorldStaticModelsByIndex, getWorldTexture, getWorldXRotation, getWorldYRotation, getWorldZRotation, getX, getY, getZ, hasBlood, hasDirt, hasHeadCondition, hasMetal, hasModData, hasOrigin, hasQuality, hasReplaceType, hasResearchableRecipes, hasSharpness, hasTag, hasTimesHeadRepaired, haveExtraItems, headConditionCheck, headConditionCheck, headConditionCheck, headConditionCheck, headConditionCheck, HowRotten, inheritFoodAgeFrom, inheritOlderFoodAge, initialiseItem, isActivated, isAlcoholic, isAlwaysWelcomeGift, isAnimalFeed, isBeingFilled, isBroken, isBurnt, isCanBandage, isConditionAffectsCapacity, isCookable, isCooked, isCustomColor, isCustomName, isCustomWeight, isDamaged, isDisappearOnUse, IsDrainable, isDull, isEmittingLight, isEmptyOfFluid, isEntityValid, isEquipped, isEquippedNoSprint, isFakeEquipped, isFakeEquipped, isFavorite, isFishingLure, isFluidContainer, isFood, IsFood, isFullOfFluid, isHidden, isInfected, isInitialised, isInLocalPlayerInventory, isInPlayerInventory, IsInventoryContainer, isIsCookable, isKeepOnDeplete, isKeyRing, IsLiterature, IsMap, isMemento, isProtectFromRainWhileEquipped, isPureWater, isRecordedMedia, isRemoteController, isRequiresEquippedBothHands, IsRotten, isSpice, isTorchCone, isTrap, isTwoHandWeapon, isUseWorldItem, isVanilla, isVisualAid, isWaterSource, IsWeapon, isWet, loadCorpseFromByteData, loadItem, loadItem, loadItem, ModDataMatches, monogramAfterDescriptor, nameAfterDescriptor, OnAddedToContainer, OnBeforeRemoveFromContainer, onBreak, playActivateDeactivateSound, playActivateSound, playDeactivateSound, playSoundOnPlayer, randomizeCondition, randomizeGeneralCondition, randomizeHeadCondition, randomizeSharpness, randomizeWorldZRotation, reduceCondition, reduceHeadCondition, RemoveFromContainer, researchRecipes, reset, saveWithSize, setActivated, setActivatedRemote, setActualWeight, setAge, setAlcoholic, setAlcoholPower, setAmmoType, setAnimalTracks, 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, setConditionFrom, setConditionFromHeadCondition, setConditionFromModData, setConditionLowerNormal, setConditionLowerOffroad, setConditionMax, setConditionNoSound, setConditionTo, setConditionWhileLoading, setContainer, SetContainerPosition, setContainerX, setContainerY, setCooked, setCookedString, setCookingTime, setCount, setCountDownSound, setCurrentAmmoCount, setCurrentUses, setCurrentUsesFrom, setCustomColor, setCustomMenuOption, setCustomName, setCustomWeight, setDescription, setDirt, setDisplayCategory, setDurability, setEngineLoudness, setEquipParent, setEquipParent, setEvolvedRecipeName, setExplosionSound, setFatigueChange, setFavorite, setGunType, setHaveBeenRepaired, setHeadCondition, setHeadConditionFromCondition, setIcon, setIconsForTexture, setID, setInfected, setInitialised, setIsCookable, setIsCraftingConsumed, setItemCapacity, setItemHeat, setItemWhenDry, setJobDelta, setJobType, setKeyId, setLastAged, setLightDistance, setLightStrength, setMaxAmmo, setMaxCapacity, setMediaType, setMeltingTime, setMetalValue, setMinutesToBurn, setMinutesToCook, setModelIndex, setModule, setName, setNewPlaceDir, setOffAge, setOffAgeMax, setOffString, setOrigin, setOrigin, setOrigin, setOriginX, setOriginY, setOriginZ, setPlaceDir, setPreviousOwner, setQuality, setRecordedMediaData, setRecordedMediaIndex, setRecordedMediaIndexInteger, setReduceInfectionPower, setRegistry_id, setRemoteControlID, setRemoteController, setRemoteRange, setReplaceOnUse, setReplaceOnUseOn, setRequireInHandOrInventory, setRightClickContainer, setScriptItem, setSharpness, setSharpnessFrom, setStashChance, setStashMap, setStaticModel, setStaticModelsByIndex, setStressChange, setSuspensionCompression, setSuspensionDamping, setTaken, setTexture, setTextureBurnt, setTextureColorMask, setTextureCooked, setTextureFluidMask, setTexturerotten, setTimesHeadRepaired, setTimesRepaired, setTooltip, setTorchCone, setType, setUnCookedString, setUnhappyChange, setUses, setUsesFrom, setWeight, setWet, setWetCooldown, setWheelFriction, setWorker, setWorldItem, setWorldScale, setWorldStaticItem, setWorldStaticModel, setWorldStaticModelsByIndex, setWorldTexture, setWorldXRotation, setWorldYRotation, setWorldZRotation, sharpnessCheck, sharpnessCheck, sharpnessCheck, sharpnessCheck, sharpnessCheck, shouldUpdateInWorld, stopEquippedAndActivatedSound, storeInByteData, synchWithVisual, syncItemFields, tryGetWorldStaticModelByIndex, unsealIfNotFull, updateAge, updateEquippedAndActivatedSound, updateEquippedAndActivatedSound, updateSound, Use, Use, Use, UseAndSync, UseForCrafting, 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
-
SpriteName
-
palette
-
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() -
Unwear
public void Unwear(boolean boolean0) -
DoTooltip
- Overrides:
DoTooltip
in classInventoryItem
-
isDirty
public boolean isDirty() -
isBloody
public boolean isBloody()- Overrides:
isBloody
in classInventoryItem
-
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) -
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
-
getPalette
- Returns:
- the palette
-
setPalette
-
getTemperature
public float getTemperature() -
setTemperature
public void setTemperature(float _temperature) -
setDirtyness
public void setDirtyness(float delta) -
setBloodLevel
public void setBloodLevel(float delta) - Overrides:
setBloodLevel
in classInventoryItem
-
getDirtyness
public float getDirtyness() -
getBloodlevel
public float getBloodlevel() -
getBloodlevelForPart
-
getBloodLevel
public float getBloodLevel()- Overrides:
getBloodLevel
in classInventoryItem
-
getBloodLevelForPart
-
getWeight
public float getWeight()- Overrides:
getWeight
in classInventoryItem
- Returns:
- the Weight
-
setWetness
public void setWetness(float percent) -
getWetness
public float getWetness()- Overrides:
getWetness
in classInventoryItem
-
getWeightWet
public float getWeightWet() -
setWeightWet
public void setWeightWet(float weight) -
getConditionLowerChance
public int getConditionLowerChance()- Overrides:
getConditionLowerChance
in classInventoryItem
-
setConditionLowerChance
public void setConditionLowerChance(int conditionLowerChance) -
setCondition
public void setCondition(int Condition) - Overrides:
setCondition
in classInventoryItem
-
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
- Overrides:
toString
in classInventoryItem
-
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 -
getScratchDefenseFromItem
Used from lua tooltip when repairing clothing -
getPatchType
-
removePatch
-
canFullyRestore
-
fullyRestore
public void fullyRestore() -
addPatchForClient
public void addPatchForClient(int int2, int int0, int int1, boolean boolean0) -
addPatch
-
getCoveredParts
-
getNbrOfCoveredParts
public int getNbrOfCoveredParts() -
getCondLossPerHole
public float getCondLossPerHole() -
copyPatchesTo
-
canBe3DRender
public boolean canBe3DRender() -
isWorn
public boolean isWorn()- Overrides:
isWorn
in classInventoryItem
-
addRandomHole
public void addRandomHole() -
addRandomDirt
public void addRandomDirt() -
addRandomBlood
public void addRandomBlood() -
randomizeCondition
public void randomizeCondition(int int0, int int2, int int4, int int6) -
hasFilter
public boolean hasFilter() -
setNoFilter
public void setNoFilter() -
getFilterType
-
setFilterType
-
hasTank
public boolean hasTank() -
setNoTank
public void setNoTank() -
getTankType
-
setTankType
-
getUsedDelta
public float getUsedDelta() -
setUsedDelta
public void setUsedDelta(float float0) -
getUseDelta
public float getUseDelta() -
drainGasMask
public void drainGasMask() -
drainGasMask
public void drainGasMask(float float1) -
drainSCBA
public void drainSCBA() -
getCorpseSicknessDefense
public float getCorpseSicknessDefense()
-