Package zombie.inventory.types
Class Food
java.lang.Object
zombie.inventory.InventoryItem
zombie.inventory.types.Food
public class Food extends InventoryItem
-
Field Summary
Fields Modifier and Type Field Description protected boolean
bBadCold
protected boolean
bDangerousUncooked
protected boolean
bGoodHot
protected float
endChange
static float
FreezerAgeMultiplier
protected float
Heat
protected float
hungChange
protected int
LastCookMinute
protected float
LastFrozenUpdate
boolean
Poison
protected boolean
rotten
java.util.ArrayList
spices
float
thirstChange
protected java.lang.String
useOnConsume
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 Food(java.lang.String module, java.lang.String name, java.lang.String itemType, java.lang.String texName)
-
Method Summary
Modifier and Type Method Description boolean
canBeFrozen()
boolean
CanStack(InventoryItem item)
void
DoTooltip(ObjectTooltip tooltipUI, ObjectTooltip.Layout layout)
boolean
finishupdate()
void
freeze()
float
getBaseHungChange()
Deprecated.float
getBaseHunger()
float
getBoredomChange()
float
getCalories()
float
getCarbohydrates()
java.lang.String
getCategory()
java.lang.String
getChef()
float
getCompostTime()
java.lang.String
getCustomEatSound()
float
getEndChange()
float
getEnduranceChange()
int
getFluReduction()
java.lang.String
getFoodType()
float
getFreezingTime()
float
getHeat()
java.lang.String
getHerbalistType()
float
getHungChange()
float
getHungerChange()
float
getInvHeat()
int
getLastCookMinute()
float
getLipids()
java.lang.String
getName()
java.lang.String
getOnCooked()
java.lang.String
getOnEat()
float
getPainReduction()
int
getPoisonDetectionLevel()
java.lang.Integer
getPoisonLevelForRecipe()
int
getPoisonPower()
float
getProteins()
int
getReduceFoodSickness()
java.util.List
getReplaceOnCooked()
java.lang.String
getReplaceOnRotten()
float
getRottenTime()
int
getSaveType()
float
getScore(SurvivorDesc desc)
java.util.ArrayList
getSpices()
float
getStressChange()
Texture
getTex()
float
getThirstChange()
float
getUnhappyChange()
int
getUseForPoison()
java.lang.String
getUseOnConsume()
java.lang.String
getWorldTexture()
boolean
isBadCold()
boolean
isBadInMicrowave()
boolean
isbDangerousUncooked()
boolean
isFreezing()
boolean
isFresh()
boolean
isFrozen()
boolean
isGoodHot()
boolean
isPackaged()
boolean
isPoison()
boolean
isRemoveNegativeEffectOnCooked()
boolean
isRotten()
boolean
isSpice()
boolean
isThawing()
void
load(java.nio.ByteBuffer input, int WorldVersion, boolean net)
void
multiplyFoodValues(float percentage)
void
save(java.nio.ByteBuffer output, boolean net)
void
setBadCold(boolean bBadCold)
void
setBadInMicrowave(boolean badInMicrowave)
void
setBaseHunger(float baseHunger)
void
setbDangerousUncooked(boolean bDangerousUncooked)
void
setCalories(float calories)
void
setCanBeFrozen(boolean canBeFrozen)
void
setCarbohydrates(float carbohydrates)
void
setChef(java.lang.String chef)
void
setCompostTime(float compostTime)
void
setCustomEatSound(java.lang.String customEatSound)
void
setEndChange(float endChange)
void
setFluReduction(int fluReduction)
void
setFoodType(java.lang.String foodType)
void
setFreezingTime(float freezingTime)
void
setFrozen(boolean frozen)
void
setGoodHot(boolean bGoodHot)
void
setHeat(float Heat)
void
setHerbalistType(java.lang.String type)
void
setHungChange(float hungChange)
void
setLastCookMinute(int LastCookMinute)
void
setLipids(float lipids)
void
setOnCooked(java.lang.String onCooked)
void
setOnEat(java.lang.String onEat)
void
setPackaged(boolean packaged)
void
setPainReduction(float painReduction)
void
setPoisonDetectionLevel(int poisonDetectionLevel)
void
setPoisonLevelForRecipe(java.lang.Integer poisonLevelForRecipe)
void
setPoisonPower(int poisonPower)
void
setProteins(float proteins)
void
setReduceFoodSickness(int ReduceFoodSickness)
void
setRemoveNegativeEffectOnCooked(boolean removeNegativeEffectOnCooked)
void
setReplaceOnCooked(java.util.List replaceOnCooked)
void
setReplaceOnRotten(java.lang.String replaceOnRotten)
void
setRotten(boolean rotten)
void
setRottenTime(float time)
void
setSpice(boolean isSpice)
void
setSpices(java.util.ArrayList spices)
void
setThirstChange(float thirstChange)
void
setUseForPoison(int useForPoison)
void
setUseOnConsume(java.lang.String useOnConsume)
boolean
shouldUpdateInWorld()
void
update()
void
updateAge()
void
updateFreezing()
Methods inherited from class zombie.inventory.InventoryItem
addExtraItem, canBeActivated, canBeRemote, canStoreWater, copyConditionModData, CopyModData, doBuildingtStash, DoTooltip, getA, getActualWeight, getAge, getAlcoholPower, getB, getBandagePower, 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, 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, getScriptItem, getSwingAnim, getTaken, getTexture, getTextureBurnt, getTextureCooked, getTexturerotten, getTooltip, getType, getUnCookedString, getUnequippedWeight, getUses, getWeight, getWetCooldown, getWorker, getWorldItem, 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, 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, storeInByteData, Use, Use, Use, Use, UseItem
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
bBadCold
protected boolean bBadCold -
bGoodHot
protected boolean bGoodHot -
Heat
protected float Heat -
endChange
protected float endChange -
hungChange
protected float hungChange -
useOnConsume
protected java.lang.String useOnConsume -
rotten
protected boolean rotten -
bDangerousUncooked
protected boolean bDangerousUncooked -
LastCookMinute
protected int LastCookMinute -
thirstChange
public float thirstChange -
Poison
public boolean Poison -
spices
public java.util.ArrayList spices -
LastFrozenUpdate
protected float LastFrozenUpdate -
FreezerAgeMultiplier
public static final float FreezerAgeMultiplier- See Also:
- Constant Field Values
-
-
Constructor Details
-
Food
public Food(java.lang.String module, java.lang.String name, java.lang.String itemType, java.lang.String texName)
-
-
Method Details
-
getCategory
public java.lang.String getCategory()- Overrides:
getCategory
in classInventoryItem
-
getSaveType
public int getSaveType()- Overrides:
getSaveType
in classInventoryItem
-
update
public void update()- Overrides:
update
in classInventoryItem
-
updateAge
public void updateAge()- Overrides:
updateAge
in classInventoryItem
-
updateFreezing
public void updateFreezing() -
CanStack
- Overrides:
CanStack
in classInventoryItem
-
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
-
finishupdate
public boolean finishupdate()- Overrides:
finishupdate
in classInventoryItem
-
shouldUpdateInWorld
public boolean shouldUpdateInWorld()- Overrides:
shouldUpdateInWorld
in classInventoryItem
-
getName
public java.lang.String getName()- Overrides:
getName
in classInventoryItem
-
DoTooltip
- Overrides:
DoTooltip
in classInventoryItem
-
getEnduranceChange
public float getEnduranceChange() -
getUnhappyChange
public float getUnhappyChange()- Overrides:
getUnhappyChange
in classInventoryItem
-
getBoredomChange
public float getBoredomChange()- Overrides:
getBoredomChange
in classInventoryItem
-
getHungerChange
public float getHungerChange() -
getStressChange
public float getStressChange()- Overrides:
getStressChange
in classInventoryItem
-
getScore
- Overrides:
getScore
in classInventoryItem
-
isBadCold
public boolean isBadCold() -
setBadCold
public void setBadCold(boolean bBadCold) -
isGoodHot
public boolean isGoodHot() -
setGoodHot
public void setGoodHot(boolean bGoodHot) -
getHeat
public float getHeat() -
getInvHeat
public float getInvHeat()- Overrides:
getInvHeat
in classInventoryItem
-
setHeat
public void setHeat(float Heat) -
getEndChange
public float getEndChange() -
setEndChange
public void setEndChange(float endChange) -
getBaseHungChange
@Deprecated public float getBaseHungChange()Deprecated. -
getHungChange
public float getHungChange() -
setHungChange
public void setHungChange(float hungChange) -
getUseOnConsume
public java.lang.String getUseOnConsume() -
setUseOnConsume
public void setUseOnConsume(java.lang.String useOnConsume) -
isRotten
public boolean isRotten() -
isFresh
public boolean isFresh() -
setRotten
public void setRotten(boolean rotten) -
isbDangerousUncooked
public boolean isbDangerousUncooked() -
setbDangerousUncooked
public void setbDangerousUncooked(boolean bDangerousUncooked) -
getLastCookMinute
public int getLastCookMinute() -
setLastCookMinute
public void setLastCookMinute(int LastCookMinute) -
getThirstChange
public float getThirstChange() -
setThirstChange
public void setThirstChange(float thirstChange) -
setReplaceOnCooked
public void setReplaceOnCooked(java.util.List replaceOnCooked) -
getReplaceOnCooked
public java.util.List getReplaceOnCooked() -
getBaseHunger
public float getBaseHunger() -
setBaseHunger
public void setBaseHunger(float baseHunger) -
isSpice
public boolean isSpice() -
setSpice
public void setSpice(boolean isSpice) -
isPoison
public boolean isPoison() -
getPoisonDetectionLevel
public int getPoisonDetectionLevel() -
setPoisonDetectionLevel
public void setPoisonDetectionLevel(int poisonDetectionLevel) -
getPoisonLevelForRecipe
public java.lang.Integer getPoisonLevelForRecipe() -
setPoisonLevelForRecipe
public void setPoisonLevelForRecipe(java.lang.Integer poisonLevelForRecipe) -
getUseForPoison
public int getUseForPoison() -
setUseForPoison
public void setUseForPoison(int useForPoison) -
getPoisonPower
public int getPoisonPower() -
setPoisonPower
public void setPoisonPower(int poisonPower) -
getFoodType
public java.lang.String getFoodType() -
setFoodType
public void setFoodType(java.lang.String foodType) -
isRemoveNegativeEffectOnCooked
public boolean isRemoveNegativeEffectOnCooked() -
setRemoveNegativeEffectOnCooked
public void setRemoveNegativeEffectOnCooked(boolean removeNegativeEffectOnCooked) -
getCustomEatSound
public java.lang.String getCustomEatSound() -
setCustomEatSound
public void setCustomEatSound(java.lang.String customEatSound) -
getChef
public java.lang.String getChef() -
setChef
public void setChef(java.lang.String chef) -
getOnCooked
public java.lang.String getOnCooked() -
setOnCooked
public void setOnCooked(java.lang.String onCooked) -
getHerbalistType
public java.lang.String getHerbalistType() -
setHerbalistType
public void setHerbalistType(java.lang.String type) -
getSpices
public java.util.ArrayList getSpices() -
setSpices
public void setSpices(java.util.ArrayList spices) -
getTex
- Overrides:
getTex
in classInventoryItem
-
getWorldTexture
public java.lang.String getWorldTexture()- Overrides:
getWorldTexture
in classInventoryItem
-
getReduceFoodSickness
public int getReduceFoodSickness() -
setReduceFoodSickness
public void setReduceFoodSickness(int ReduceFoodSickness) -
getFluReduction
public int getFluReduction() -
setFluReduction
public void setFluReduction(int fluReduction) -
getPainReduction
public float getPainReduction() -
setPainReduction
public void setPainReduction(float painReduction) -
getCarbohydrates
public float getCarbohydrates() -
setCarbohydrates
public void setCarbohydrates(float carbohydrates) -
getLipids
public float getLipids() -
setLipids
public void setLipids(float lipids) -
getProteins
public float getProteins() -
setProteins
public void setProteins(float proteins) -
getCalories
public float getCalories() -
setCalories
public void setCalories(float calories) -
isPackaged
public boolean isPackaged() -
setPackaged
public void setPackaged(boolean packaged) -
getFreezingTime
public float getFreezingTime() -
setFreezingTime
public void setFreezingTime(float freezingTime) -
freeze
public void freeze() -
isFrozen
public boolean isFrozen() -
setFrozen
public void setFrozen(boolean frozen) -
canBeFrozen
public boolean canBeFrozen() -
setCanBeFrozen
public void setCanBeFrozen(boolean canBeFrozen) -
isFreezing
public boolean isFreezing() -
isThawing
public boolean isThawing() -
getReplaceOnRotten
public java.lang.String getReplaceOnRotten() -
setReplaceOnRotten
public void setReplaceOnRotten(java.lang.String replaceOnRotten) -
multiplyFoodValues
public void multiplyFoodValues(float percentage) -
getRottenTime
public float getRottenTime() -
setRottenTime
public void setRottenTime(float time) -
getCompostTime
public float getCompostTime() -
setCompostTime
public void setCompostTime(float compostTime) -
getOnEat
public java.lang.String getOnEat() -
setOnEat
public void setOnEat(java.lang.String onEat) -
isBadInMicrowave
public boolean isBadInMicrowave() -
setBadInMicrowave
public void setBadInMicrowave(boolean badInMicrowave)
-