Package zombie.inventory.types
Class Clothing
java.lang.Object
zombie.inventory.InventoryItem
zombie.inventory.types.Clothing
public class Clothing extends InventoryItem
-
Field Summary
Fields Modifier and Type Field Description float
bloodLevel
protected Item.ClothingBodyLocation
bodyLocation
protected java.lang.String
palette
protected java.lang.String
SpriteName
Fields inherited from class zombie.inventory.InventoryItem
ActualWeight, Age, alcoholic, AlwaysWelcomeGift, boredomChange, Burnt, BurntString, byteData, CanBandage, CanStack, CanStoreWater, cat, CloseKillMove, col, Condition, ConditionMax, consumeMenu, container, containerX, containerY, Cooked, CookedString, CookingTime, Description, DisappearOnUse, extraItems, fatigueChange, FreshString, FrozenString, id, IsCookable, IsWaterSource, jobDelta, jobType, keepOnDeplete, LastAged, mainCategory, MinutesToBurn, MinutesToCook, module, name, newPlaceDir, OffAge, OffAgeMax, OffString, placeDir, previousOwner, replaceOnUse, ReplaceOnUseOn, requireInHandOrInventory, RequiresEquippedBothHands, rightClickContainer, ScriptItem, stressChange, swingAnim, Taken, texture, textureBurnt, textureCooked, texturerotten, type, UnCookedString, unhappyChange, uses, Weight, worldItem, WorldTexture
-
Constructor Summary
Constructors Constructor Description Clothing(java.lang.String module, java.lang.String name, java.lang.String itemType, java.lang.String texName, java.lang.String palette, java.lang.String SpriteName)
-
Method Summary
Modifier and Type Method Description boolean
CanStack(InventoryItem item)
static Clothing
CreateFromSprite(java.lang.String Sprite)
void
DoTooltip(ObjectTooltip tooltipUI, ObjectTooltip.Layout layout)
boolean
finishupdate()
float
getBloodlevel()
Item.ClothingBodyLocation
getBodyLocation()
java.lang.String
getCategory()
float
getClothingDirtynessIncreaseLevel()
int
getConditionLowerChance()
float
getDirtyness()
java.lang.String
getName()
java.lang.String
getPalette()
int
getSaveType()
java.lang.String
getSpriteName()
float
getTemperature()
boolean
isBloody()
boolean
isDirty()
void
load(java.nio.ByteBuffer input, int WorldVersion, boolean net)
void
save(java.nio.ByteBuffer output, boolean net)
void
setBloodLevel(float delta)
void
setBodyLocation(Item.ClothingBodyLocation bodyLocation)
void
setCondition(int Condition)
void
setConditionLowerChance(int conditionLowerChance)
void
setDirtyness(float delta)
void
setPalette(java.lang.String palette)
void
setSpriteName(java.lang.String SpriteName)
void
setTemperature(float temperature)
void
Unwear()
void
update()
void
Use(boolean bCrafting, boolean bInContainer)
Methods inherited from class zombie.inventory.InventoryItem
addExtraItem, canBeActivated, canBeRemote, canStoreWater, copyConditionModData, CopyModData, doBuildingtStash, DoTooltip, getA, getActualWeight, getAge, getAlcoholPower, getB, getBandagePower, getBoredomChange, getBreakSound, getBurntString, getByteData, getCat, getColor, getColorBlue, getColorGreen, getColorInfo, getColorRed, getCondition, getConditionMax, getConsumeMenu, getContainer, getContainerX, getContainerY, getContentsWeight, getCookedString, getCookingTime, getCount, getCountDownSound, getCurrentCondition, getCustomMenuOption, getDescription, getDisplayCategory, getDisplayName, getEquipParent, getEquippedWeight, getEvolvedRecipeName, getExplosionSound, getExtraItems, getFatigueChange, getFullType, getG, getHaveBeenRepaired, getID, getInvHeat, getItemHeat, getItemWhenDry, getJobDelta, getJobType, getKeyId, getLastAged, getLightDistance, getLightStrength, getMap, getMeltingTime, getMetalValue, getMinutesToBurn, getMinutesToCook, getModData, getModule, getNewPlaceDir, getOffAge, getOffAgeMax, getOffString, getPlaceDir, getPreviousOwner, getR, getReduceInfectionPower, getRemoteControlID, getRemoteRange, getReplaceOnBreak, getReplaceOnUse, getReplaceOnUseOn, getReplaceOnUseOnString, getRequireInHandOrInventory, getRightClickContainer, getScore, getScriptItem, getStressChange, getSwingAnim, getTaken, getTex, getTexture, getTextureBurnt, getTextureCooked, getTexturerotten, getTooltip, getType, getUnCookedString, getUnequippedWeight, getUnhappyChange, getUses, getWeight, getWetCooldown, getWorker, getWorldItem, getWorldTexture, hasModData, haveExtraItems, HowRotten, isActivated, isAlcoholic, isAlwaysWelcomeGift, isBeingFilled, isBroken, isBurnt, isCanBandage, IsClothing, isCooked, isCustomColor, isCustomName, isCustomWeight, isDisappearOnUse, IsDrainable, isEquipped, isFavorite, isFishingLure, IsFood, isInfected, isIsCookable, IsLiterature, isRemoteController, isRequiresEquippedBothHands, IsRotten, isTaintedWater, isTorchCone, isTrap, isTwoHandWeapon, isWaterSource, IsWeapon, isWet, ModDataMatches, saveWithSize, setActivated, setActualWeight, setAge, setAlcoholic, setAlcoholPower, setAlwaysWelcomeGift, setAutoAge, setBandagePower, setBeingFilled, setBoredomChange, setBreakSound, setBroken, setBurnt, setBurntString, setCanBandage, setCanBeActivated, setCanBeRemote, setCat, setColor, setColorBlue, setColorGreen, setColorRed, setCondition, setConditionFromModData, setConditionMax, setConsumeMenu, setContainer, SetContainerPosition, setContainerX, setContainerY, setCooked, setCookedString, setCookingTime, setCount, setCountDownSound, setCustomColor, setCustomMenuOption, setCustomName, setCustomWeight, setDescription, setDisappearOnUse, setDisplayCategory, setEquipParent, setEvolvedRecipeName, setExplosionSound, setFatigueChange, setFavorite, setFishingLure, setHaveBeenRepaired, setInfected, setIsCookable, setIsWaterSource, setItemHeat, setItemWhenDry, setJobDelta, setJobType, setKeyId, setLastAged, setLightDistance, setLightStrength, setMap, setMeltingTime, setMetalValue, setMinutesToBurn, setMinutesToCook, setModule, setName, setNewPlaceDir, setOffAge, setOffAgeMax, setOffString, setPlaceDir, setPreviousOwner, setReduceInfectionPower, setRemoteControlID, setRemoteController, setRemoteRange, setReplaceOnBreak, setReplaceOnUse, setReplaceOnUseOn, setRequireInHandOrInventory, setRightClickContainer, setScriptItem, setStashMap, setStressChange, setSwingAnim, setTaintedWater, setTaken, setTexture, setTextureBurnt, setTextureCooked, setTexturerotten, setTooltip, setTorchCone, setTrap, setTwoHandWeapon, setType, setUnCookedString, setUnhappyChange, setUses, setWeight, setWet, setWetCooldown, setWorker, setWorldItem, setWorldTexture, shouldUpdateInWorld, storeInByteData, updateAge, Use, Use, Use, UseItem
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
bodyLocation
-
SpriteName
protected java.lang.String SpriteName -
palette
protected java.lang.String palette -
bloodLevel
public float bloodLevel
-
-
Constructor Details
-
Clothing
public Clothing(java.lang.String module, java.lang.String name, java.lang.String itemType, java.lang.String texName, java.lang.String palette, java.lang.String SpriteName)
-
-
Method Details
-
getCategory
public java.lang.String getCategory()- Overrides:
getCategory
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
-
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
public void save(java.nio.ByteBuffer output, boolean net) throws java.io.IOException- Overrides:
save
in classInventoryItem
- Throws:
java.io.IOException
-
load
public void load(java.nio.ByteBuffer input, int WorldVersion, boolean net) throws java.io.IOException- Overrides:
load
in classInventoryItem
- Throws:
java.io.IOException
-
getBodyLocation
-
setBodyLocation
-
getSpriteName
public java.lang.String getSpriteName() -
setSpriteName
public void setSpriteName(java.lang.String SpriteName) -
getPalette
public java.lang.String getPalette() -
setPalette
public void setPalette(java.lang.String palette) -
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() -
getConditionLowerChance
public int getConditionLowerChance() -
setConditionLowerChance
public void setConditionLowerChance(int conditionLowerChance) -
setCondition
public void setCondition(int Condition)- Overrides:
setCondition
in classInventoryItem
-
getClothingDirtynessIncreaseLevel
public float getClothingDirtynessIncreaseLevel()
-