Class Clothing
java.lang.Object
zombie.entity.GameEntity
zombie.inventory.InventoryItem
zombie.inventory.types.Clothing
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Field Summary
FieldsFields inherited from class zombie.inventory.InventoryItem
atlasTexture, byteData, CanStack, CloseKillMove, col, Cooked, deadBodyObject, extraItems, fatigueChange, id, jobDelta, jobType, mainCategory, ReplaceOnUseOn, RequiresEquippedBothHands, worldAlpha, worldItem, worldScale, worldXRotation, worldYRotation, worldZRotationFields inherited from class zombie.entity.GameEntity
DEFAULT_ENTITY_DISPLAY_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPatch(IsoGameCharacter chr, BloodBodyPartType part, InventoryItem fabric) voidaddPatchForClient(int int2, int int0, int int1, boolean boolean0) voidvoidvoidbooleanbooleancanFullyRestore(IsoGameCharacter chr, BloodBodyPartType part, InventoryItem fabric) booleanCanStack(InventoryItem item) voidcopyPatchesTo(Clothing newClothing) static ClothingCreateFromSprite(String Sprite) voidDoTooltip(ObjectTooltip tooltipUI, ObjectTooltip.Layout layout) voidvoiddrainGasMask(float float1) voidbooleanvoidvoidfloatstatic intgetBiteDefenseFromItem(IsoGameCharacter chr, InventoryItem fabric) Used from lua tooltip when repairing clothingfloatfloatfloatfloatfloatintfloatfloatintfloatfloatfloatgetDefForPart(BloodBodyPartType part, boolean bite, boolean bullet) floatintfloatgetName()intfloatintfloatintfloatstatic intgetScratchDefenseFromItem(IsoGameCharacter chr, InventoryItem fabric) Used from lua tooltip when repairing clothingfloatfloatfloatfloatfloatfloatfloatfloatfloatbooleanbooleanhasTank()booleanisBloody()booleanbooleanbooleanisDirty()booleanisWorn()voidload(ByteBuffer input, int WorldVersion) voidrandomizeCondition(int int0, int int2, int int4, int int6) voidremovePatch(BloodBodyPartType part) voidsave(ByteBuffer output, boolean net) voidsetBiteDefense(float _biteDefense) voidsetBloodLevel(float delta) voidsetBulletDefense(float _bulletDefense) voidsetCanHaveHoles(Boolean _canHaveHoles) voidsetChanceToFall(int _chanceToFall) voidsetCombatSpeedModifier(float _combatSpeedModifier) voidsetCondition(int Condition) voidsetConditionLowerChance(int conditionLowerChance) voidsetDirtyness(float delta) voidsetFilterType(String string) voidsetInsulation(float _insulation) voidsetNeckProtectionModifier(float _neckProtectionModifier) voidvoidvoidsetPalette(String _palette) voidsetRemoveOnBroken(Boolean _removeOnBroken) voidsetRunSpeedModifier(float _runSpeedModifier) voidsetScratchDefense(float _scratchDefense) voidsetSpriteName(String _SpriteName) voidsetStompPower(float _stompPower) voidsetTankType(String string) voidsetTemperature(float _temperature) voidsetUsedDelta(float float0) voidsetWaterResistance(float _waterResistance) voidsetWeightWet(float weight) voidsetWetness(float percent) voidsetWindresistance(float _windresistance) toString()voidUnwear()voidUnwear(boolean boolean0) voidupdate()voidvoidupdateWetness(boolean bIgnoreEquipped) voidUse(boolean bCrafting, boolean bInContainer) Methods inherited from class zombie.inventory.InventoryItem
addExtraItem, addExtraItem, allowRandomTint, applyMaxSharpness, canBeActivated, canBeEquipped, canBeRemote, canEmitLight, canHaveOrigin, canStoreWater, copyBloodLevelFrom, copyClothing, copyConditionModData, copyConditionStatesFrom, copyModData, CopyModData, copyTimesHeadRepairedFrom, copyTimesHeadRepairedTo, copyTimesRepairedFrom, copyTimesRepairedTo, createAndStoreDefaultDeadBody, createCloneItem, damageCheck, damageCheck, damageCheck, damageCheck, damageCheck, damageCheck, doBreakSound, doBuildingStash, doDamagedSound, DoTooltip, DoTooltipEmbedded, emptyLiquid, getA, getActualWeight, getAge, getAimReleaseSound, getAlcoholPower, getAlternateModelName, getAmmoType, getAnimalFeedType, getAnimalTracks, getAttachedSlot, getAttachedSlotType, getAttachedToModel, getAttachmentReplacement, getAttachmentsProvided, getAttachmentType, getB, getBandagePower, getBlood, getBloodClothingType, getBloodLevelAdjustedHigh, getBloodLevelAdjustedLow, getBodyLocation, getBoredomChange, getBrakeForce, getBreakSound, getBringToBearSound, getBulletHitArmourSound, 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, getFileName, getFillFromDispenserSound, getFillFromLakeSound, getFillFromTapSound, getFillFromToiletSound, getFireFuelRatio, getFluidContainerFromSelfOrWorldItem, 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, getNoRecipesModDataString, getOffAge, getOffAgeMax, getOffString, getOnBreak, getOpeningRecipe, getOriginX, getOriginY, getOriginZ, getOutermostContainer, getOwner, 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, getWeaponHitArmourSound, getWeaponLevel, getWetCooldown, getWheelFriction, getWithDrainable, getWithoutDrainable, getWorker, getWorldAlpha, getWorldItem, getWorldObjectSprite, getWorldStaticItem, getWorldStaticModel, getWorldStaticModelsByIndex, getWorldTexture, getWorldXRotation, getWorldYRotation, getWorldZRotation, getX, getY, getZ, hasBeenHeard, hasBeenSeen, hasBlood, hasDirt, hasHeadCondition, hasMetal, hasModData, hasOrigin, hasQuality, hasReplaceType, hasResearchableRecipes, hasSharpness, hasTag, hasTag, hasTimesHeadRepaired, haveExtraItems, headConditionCheck, headConditionCheck, headConditionCheck, headConditionCheck, headConditionCheck, HowRotten, incrementCondition, inheritFoodAgeFrom, inheritOlderFoodAge, initialiseItem, is, isActivated, isAlcoholic, isAlwaysWelcomeGift, isAnimalCorpse, isAnimalFeed, isBeingFilled, isBroken, isBurnt, isCanBandage, isConditionAffectsCapacity, isCookable, isCooked, isCustomColor, isCustomName, isCustomWeight, isDamaged, isDisappearOnUse, isDoingExtendedPlacement, IsDrainable, isDull, isEmittingLight, isEmptyOfFluid, isEntityValid, isEquipped, isEquippedNoSprint, isFakeEquipped, isFakeEquipped, isFavorite, isFavouriteRecipeInput, isFishingLure, isFluidContainer, isFood, IsFood, isForceDropHeavyItem, isFullOfFluid, isHidden, isHumanCorpse, isInfected, isInitialised, isInLocalPlayerInventory, isInPlayerInventory, IsInventoryContainer, isIsCookable, isKeepOnDeplete, isKeyRing, IsLiterature, IsMap, isMemento, isNoRecipes, isProtectFromRainWhileEquipped, isPureWater, isRecordedMedia, isRemoteController, isRequiresEquippedBothHands, IsRotten, isSealed, isSpice, isTorchCone, isTrap, isTwoHandWeapon, isUnwanted, isUseWorldItem, isVanilla, isVisualAid, isWaterSource, IsWeapon, isWet, loadCorpseFromByteData, loadItem, loadItem, loadItem, ModDataMatches, monogramAfterDescriptor, nameAfterDescriptor, OnAddedToContainer, OnBeforeRemoveFromContainer, onBreak, playActivateDeactivateSound, playActivateSound, playDeactivateSound, randomizeCondition, randomizeGeneralCondition, randomizeHeadCondition, randomizeSharpness, randomizeWorldZRotation, reduceCondition, reduceHeadCondition, Remove, 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, setDoingExtendedPlacement, 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, setNoRecipes, 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, setStaticModel, setStaticModelsByIndex, setStressChange, setSuspensionCompression, setSuspensionDamping, setTaken, setTexture, setTextureBurnt, setTextureColorMask, setTextureCooked, setTextureFluidMask, setTexturerotten, setTimesHeadRepaired, setTimesRepaired, setTooltip, setTorchCone, setType, setUnCookedString, setUnhappyChange, setUnwanted, setUses, setUsesFrom, setWeight, setWet, setWetCooldown, setWheelFriction, setWorker, setWorldAlpha, setWorldItem, setWorldScale, setWorldStaticItem, setWorldStaticModel, setWorldStaticModel, setWorldStaticModelsByIndex, setWorldTexture, setWorldXRotation, setWorldYRotation, setWorldZRotation, sharpnessCheck, sharpnessCheck, sharpnessCheck, sharpnessCheck, sharpnessCheck, shouldUpdateInWorld, storeInByteData, SynchSpawn, synchWithVisual, syncItemFields, tryGetWorldStaticModelByIndex, unsealIfNotFull, updateAge, updateEquippedAndActivatedSound, updateEquippedAndActivatedSound, updateSound, Use, Use, Use, UseAndSync, UseForCrafting, UseItemMethods inherited from class zombie.entity.GameEntity
addToWorld, attrib, componentSize, containsComponent, getAttributes, getComponent, getComponentAny, getComponentForIndex, getComponentFromID, getDefaultEntityDisplayName, getDurabilityComponent, getEntityDisplayName, getEntityFullTypeDebug, getEntityScript, getExceptionCompatibleString, getFluidContainer, getSpriteConfig, getUsingPlayer, hasComponent, hasComponentAny, hasComponents, hasRenderers, isAddedToEngine, isMeta, isOutside, isRemovingFromEngine, isScheduledForBucketUpdate, isScheduledForEngineRemoval, isUsingPlayer, isValidEngineEntity, loadEntity, onEquip, onEquip, onFluidContainerUpdate, onUnEquip, removeFromWorld, removeFromWorld, renderlast, renderlastComponents, requiresEntitySave, saveEntity, sendSyncEntity, setUsingPlayer
-
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:
getCategoryin classInventoryItem
-
IsClothing
public boolean IsClothing()- Overrides:
IsClothingin classInventoryItem
-
getSaveType
public int getSaveType()- Overrides:
getSaveTypein classInventoryItem
-
Unwear
public void Unwear() -
Unwear
public void Unwear(boolean boolean0) -
DoTooltip
- Overrides:
DoTooltipin classInventoryItem
-
isDirty
public boolean isDirty() -
isBloody
public boolean isBloody()- Overrides:
isBloodyin classInventoryItem
-
getName
- Overrides:
getNamein classInventoryItem- Returns:
- the name
-
getName
- Overrides:
getNamein classInventoryItem
-
update
public void update()- Overrides:
updatein 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:
finishupdatein classInventoryItem
-
Use
public void Use(boolean bCrafting, boolean bInContainer) -
CanStack
- Overrides:
CanStackin classInventoryItem
-
CreateFromSprite
-
save
- Overrides:
savein classInventoryItem- Throws:
IOException
-
load
- Overrides:
loadin 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) - Overrides:
setBloodLevelin classInventoryItem
-
getDirtyness
public float getDirtyness() -
getBloodlevel
public float getBloodlevel() -
getBloodlevelForPart
-
getBloodLevel
public float getBloodLevel()- Overrides:
getBloodLevelin classInventoryItem
-
getBloodLevelForPart
-
getWeight
public float getWeight()- Overrides:
getWeightin classInventoryItem- Returns:
- the Weight
-
setWetness
public void setWetness(float percent) -
getWetness
public float getWetness()- Overrides:
getWetnessin classInventoryItem
-
getWeightWet
public float getWeightWet() -
setWeightWet
public void setWeightWet(float weight) -
getConditionLowerChance
public int getConditionLowerChance()- Overrides:
getConditionLowerChancein classInventoryItem
-
setConditionLowerChance
public void setConditionLowerChance(int conditionLowerChance) -
setCondition
public void setCondition(int Condition) - Overrides:
setConditionin 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
- Overrides:
toStringin 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:
isWornin 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()
-