zombie.inventory.types
Class Clothing
java.lang.Object
zombie.inventory.InventoryItem
zombie.inventory.types.Clothing
public class Clothing
- extends InventoryItem
Fields inherited from class zombie.inventory.InventoryItem |
CanStack, CanStoreWater, CloseKillMove, col, Cooked, fatigueChange, IsWaterSource, jobDelta, jobType, mainCategory, ReplaceOnUseOn, worldItem |
Constructor Summary |
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)
|
Methods inherited from class zombie.inventory.InventoryItem |
canBeActivated, canStoreWater, CopyModData, DoTooltip, finishupdate, getActualWeight, getAge, getB, getBoredomChange, getBurntString, getCat, getCondition, getConditionMax, getConsumeMenu, getContainer, getContainerX, getContainerY, getCookedString, getCookingTime, getCount, getCurrentCondition, getDescription, getFatigueChange, getFullType, getG, getJobDelta, getJobType, getLightDistance, getLightStrength, getMinutesToBurn, getMinutesToCook, getModData, getModule, getName, getNewPlaceDir, getOffAge, getOffAgeMax, getOffString, getPlaceDir, getPreviousOwner, getR, getReplaceOnUse, getReplaceOnUseOn, getRightClickContainer, getScore, getScriptItem, getStressChange, getSwingAnim, getTaken, getTex, getTexture, getTextureBurnt, getTextureCooked, getTexturerotten, getType, getUnCookedString, getUnhappyChange, getUses, getWeight, getWorldItem, getWorldTexture, HowRotten, isActivated, isAlwaysWelcomeGift, isBurnt, isCanBandage, IsClothing, isCooked, isDisappearOnUse, IsDrainable, IsFood, isIsCookable, IsLiterature, IsRotten, isTorchCone, isWaterSource, IsWeapon, load, ModDataMatches, save, setActivated, setActualWeight, setAge, setAlwaysWelcomeGift, setAutoAge, setBoredomChange, setBurnt, setBurntString, setCanBandage, setCanBeActivated, setCat, setCondition, setConditionMax, setConsumeMenu, setContainer, SetContainerPosition, setContainerX, setContainerY, setCooked, setCookedString, setCookingTime, setCount, setDescription, setDisappearOnUse, setFatigueChange, setIsCookable, setIsWaterSource, setJobDelta, setJobType, setLightDistance, setLightStrength, setMinutesToBurn, setMinutesToCook, setModule, setName, setNewPlaceDir, setOffAge, setOffAgeMax, setOffString, setPlaceDir, setPreviousOwner, setReplaceOnUse, setReplaceOnUseOn, setRightClickContainer, setScriptItem, setStressChange, setSwingAnim, setTaken, setTexture, setTextureBurnt, setTextureCooked, setTexturerotten, setTorchCone, setType, setUnCookedString, setUnhappyChange, setUses, setWeight, setWorldItem, setWorldTexture, update, Use, Use, Use, UseItem |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
getCategory
public java.lang.String getCategory()
- Overrides:
getCategory
in class InventoryItem
getClothingPaletteMap
public static gnu.trove.map.hash.THashMap<java.lang.String,java.util.ArrayList<java.lang.String>> getClothingPaletteMap()
- Returns:
- the ClothingPaletteMap
setClothingPaletteMap
public static void setClothingPaletteMap(gnu.trove.map.hash.THashMap<java.lang.String,java.util.ArrayList<java.lang.String>> aClothingPaletteMap)
- Parameters:
aClothingPaletteMap
- the ClothingPaletteMap to set
getSpriteToItem
public static gnu.trove.map.hash.THashMap<java.lang.String,java.lang.String> getSpriteToItem()
- Returns:
- the SpriteToItem
setSpriteToItem
public static void setSpriteToItem(gnu.trove.map.hash.THashMap<java.lang.String,java.lang.String> aSpriteToItem)
- Parameters:
aSpriteToItem
- the SpriteToItem to set
Unwear
public void Unwear()
Use
public void Use(boolean bCrafting,
boolean bInContainer)
- Overrides:
Use
in class InventoryItem
CanStack
public boolean CanStack(InventoryItem item)
- Overrides:
CanStack
in class InventoryItem
CreateFromSprite
public static Clothing CreateFromSprite(java.lang.String Sprite)
save
public void save(java.nio.ByteBuffer output)
throws java.io.IOException
- Overrides:
save
in class InventoryItem
- Throws:
java.io.IOException
load
public void load(java.nio.ByteBuffer input)
throws java.io.IOException
- Overrides:
load
in class InventoryItem
- Throws:
java.io.IOException
getBodyLocation
public Item.ClothingBodyLocation getBodyLocation()
- Returns:
- the bodyLocation
setBodyLocation
public void setBodyLocation(Item.ClothingBodyLocation bodyLocation)
- Parameters:
bodyLocation
- the bodyLocation to set
getSpriteName
public java.lang.String getSpriteName()
- Returns:
- the SpriteName
setSpriteName
public void setSpriteName(java.lang.String SpriteName)
- Parameters:
SpriteName
- the SpriteName to set
getPalette
public java.lang.String getPalette()
- Returns:
- the palette
setPalette
public void setPalette(java.lang.String palette)
- Parameters:
palette
- the palette to set
getTemperature
public float getTemperature()
setTemperature
public void setTemperature(float temperature)