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
-
Method Summary
Modifier and Type Method Description boolean
canBeFrozen()
boolean
CanStack(InventoryItem inventoryItem)
void
DoTooltip(ObjectTooltip objectTooltip, 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 survivorDesc)
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 byteBuffer, int int1, boolean boolean1)
void
multiplyFoodValues(float float1)
void
save(java.nio.ByteBuffer byteBuffer, boolean boolean1)
void
setAutoAge()
void
setBadCold(boolean boolean1)
void
setBadInMicrowave(boolean boolean1)
void
setBaseHunger(float float1)
void
setbDangerousUncooked(boolean boolean1)
void
setCalories(float float1)
void
setCanBeFrozen(boolean boolean1)
void
setCarbohydrates(float float1)
void
setChef(java.lang.String string)
void
setCompostTime(float float1)
void
setCustomEatSound(java.lang.String string)
void
setEndChange(float float1)
void
setFluReduction(int int1)
void
setFoodType(java.lang.String string)
void
setFreezingTime(float float1)
void
setFrozen(boolean boolean1)
void
setGoodHot(boolean boolean1)
void
setHeat(float float1)
void
setHerbalistType(java.lang.String string)
void
setHungChange(float float1)
void
setLastCookMinute(int int1)
void
setLipids(float float1)
void
setOnCooked(java.lang.String string)
void
setOnEat(java.lang.String string)
void
setPackaged(boolean boolean1)
void
setPainReduction(float float1)
void
setPoisonDetectionLevel(int int1)
void
setPoisonLevelForRecipe(java.lang.Integer integer)
void
setPoisonPower(int int1)
void
setProteins(float float1)
void
setReduceFoodSickness(int int1)
void
setRemoveNegativeEffectOnCooked(boolean boolean1)
void
setReplaceOnCooked(java.util.List list)
void
setReplaceOnRotten(java.lang.String string)
void
setRotten(boolean boolean1)
void
setRottenTime(float float1)
void
setSpice(boolean boolean1)
void
setSpices(java.util.ArrayList arrayList)
void
setThirstChange(float float1)
void
setUseForPoison(int int1)
void
setUseOnConsume(java.lang.String string)
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, getBrakeForce, getBreakSound, getBurntString, getByteData, getCat, getChanceToSpawnDamaged, getColor, getColorBlue, getColorGreen, getColorInfo, getColorRed, getCondition, getConditionLowerNormal, getConditionLowerOffroad, getConditionMax, getConsumeMenu, getContainer, getContainerX, getContainerY, getContentsWeight, getCookedString, getCookingTime, getCount, getCountDownSound, getCurrentCondition, getCustomMenuOption, getDescription, getDisplayCategory, getDisplayName, getEngineLoudness, getEquipParent, getEquippedWeight, getEvolvedRecipeName, getExplosionSound, getExtraItems, getFatigueChange, getFullType, getG, getHaveBeenRepaired, getID, getItemCapacity, getItemHeat, getItemWhenDry, getJobDelta, getJobType, getKeyId, getLastAged, getLightDistance, getLightStrength, getMap, getMaxCapacity, getMechanicType, getMeltingTime, getMetalValue, getMinutesToBurn, getMinutesToCook, getModData, getModule, getNewPlaceDir, getOffAge, getOffAgeMax, getOffString, getOutermostContainer, getPlaceDir, getPreviousOwner, getR, getReduceInfectionPower, getRemoteControlID, getRemoteRange, getReplaceOnBreak, getReplaceOnUse, getReplaceOnUseOn, getReplaceOnUseOnString, getRequireInHandOrInventory, getRightClickContainer, getScriptItem, getSuspensionCompression, getSuspensionDamping, getSwingAnim, getTaken, getTexture, getTextureBurnt, getTextureCooked, getTexturerotten, getTooltip, getType, getUnCookedString, getUnequippedWeight, getUses, getWeight, getWetCooldown, getWheelFriction, getWorker, getWorldItem, hasModData, haveExtraItems, HowRotten, isActivated, isAlcoholic, isAlwaysWelcomeGift, isBeingFilled, isBroken, isBurnt, isCanBandage, IsClothing, isConditionAffectsCapacity, isCooked, isCustomColor, isCustomName, isCustomWeight, isDisappearOnUse, IsDrainable, isEquipped, isFavorite, isFishingLure, IsFood, isInfected, isInLocalPlayerInventory, isInPlayerInventory, isIsCookable, IsLiterature, isRemoteController, isRequiresEquippedBothHands, IsRotten, isTaintedWater, isTorchCone, isTrap, isTwoHandWeapon, isWaterSource, IsWeapon, isWet, ModDataMatches, saveWithSize, setActivated, setActualWeight, setAge, setAlcoholic, setAlcoholPower, setAlwaysWelcomeGift, setBandagePower, setBeingFilled, setBoredomChange, setBrakeForce, setBreakSound, setBroken, setBurnt, setBurntString, setCanBandage, setCanBeActivated, setCanBeRemote, setCat, setChanceToSpawnDamaged, setColor, setColorBlue, setColorGreen, setColorRed, setCondition, setCondition, setConditionFromModData, setConditionLowerNormal, setConditionLowerOffroad, setConditionMax, setConsumeMenu, setContainer, SetContainerPosition, setContainerX, setContainerY, setCooked, setCookedString, setCookingTime, setCount, setCountDownSound, setCustomColor, setCustomMenuOption, setCustomName, setCustomWeight, setDescription, setDisappearOnUse, setDisplayCategory, setEngineLoudness, setEquipParent, setEvolvedRecipeName, setExplosionSound, setFatigueChange, setFavorite, setFishingLure, setHaveBeenRepaired, setID, setInfected, setIsCookable, setIsWaterSource, setItemCapacity, setItemHeat, setItemWhenDry, setJobDelta, setJobType, setKeyId, setLastAged, setLightDistance, setLightStrength, setMap, setMaxCapacity, setMechanicType, setMeltingTime, setMetalValue, setMinutesToBurn, setMinutesToCook, setModule, setName, setNewPlaceDir, setOffAge, setOffAgeMax, setOffString, setPlaceDir, setPreviousOwner, setReduceInfectionPower, setRemoteControlID, setRemoteController, setRemoteRange, setReplaceOnBreak, setReplaceOnUse, setReplaceOnUseOn, setRequireInHandOrInventory, setRightClickContainer, setScriptItem, setStashMap, setStressChange, setSuspensionCompression, setSuspensionDamping, setSwingAnim, setTaintedWater, setTaken, setTexture, setTextureBurnt, setTextureCooked, setTexturerotten, setTooltip, setTorchCone, setTrap, setTwoHandWeapon, setType, setUnCookedString, setUnhappyChange, setUses, setWeight, setWet, setWetCooldown, setWheelFriction, setWorker, setWorldItem, setWorldTexture, storeInByteData, updateSound, 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 string, java.lang.String string2, java.lang.String string3, java.lang.String string4) -
Food
public Food(java.lang.String string, java.lang.String string2, java.lang.String string3, Item item)
-
-
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
-
setAutoAge
public void setAutoAge()- Overrides:
setAutoAge
in classInventoryItem
-
updateFreezing
public void updateFreezing() -
CanStack
- Overrides:
CanStack
in classInventoryItem
-
save
public void save(java.nio.ByteBuffer byteBuffer, boolean boolean1) throws java.io.IOException- Overrides:
save
in classInventoryItem
- Throws:
java.io.IOException
-
load
public void load(java.nio.ByteBuffer byteBuffer, int int1, boolean boolean1) 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 boolean1) -
isGoodHot
public boolean isGoodHot() -
setGoodHot
public void setGoodHot(boolean boolean1) -
getHeat
public float getHeat() -
getInvHeat
public float getInvHeat()- Overrides:
getInvHeat
in classInventoryItem
-
setHeat
public void setHeat(float float1) -
getEndChange
public float getEndChange() -
setEndChange
public void setEndChange(float float1) -
getBaseHungChange
@Deprecated public float getBaseHungChange()Deprecated. -
getHungChange
public float getHungChange() -
setHungChange
public void setHungChange(float float1) -
getUseOnConsume
public java.lang.String getUseOnConsume() -
setUseOnConsume
public void setUseOnConsume(java.lang.String string) -
isRotten
public boolean isRotten() -
isFresh
public boolean isFresh() -
setRotten
public void setRotten(boolean boolean1) -
isbDangerousUncooked
public boolean isbDangerousUncooked() -
setbDangerousUncooked
public void setbDangerousUncooked(boolean boolean1) -
getLastCookMinute
public int getLastCookMinute() -
setLastCookMinute
public void setLastCookMinute(int int1) -
getThirstChange
public float getThirstChange() -
setThirstChange
public void setThirstChange(float float1) -
setReplaceOnCooked
public void setReplaceOnCooked(java.util.List list) -
getReplaceOnCooked
public java.util.List getReplaceOnCooked() -
getBaseHunger
public float getBaseHunger() -
setBaseHunger
public void setBaseHunger(float float1) -
isSpice
public boolean isSpice() -
setSpice
public void setSpice(boolean boolean1) -
isPoison
public boolean isPoison() -
getPoisonDetectionLevel
public int getPoisonDetectionLevel() -
setPoisonDetectionLevel
public void setPoisonDetectionLevel(int int1) -
getPoisonLevelForRecipe
public java.lang.Integer getPoisonLevelForRecipe() -
setPoisonLevelForRecipe
public void setPoisonLevelForRecipe(java.lang.Integer integer) -
getUseForPoison
public int getUseForPoison() -
setUseForPoison
public void setUseForPoison(int int1) -
getPoisonPower
public int getPoisonPower() -
setPoisonPower
public void setPoisonPower(int int1) -
getFoodType
public java.lang.String getFoodType() -
setFoodType
public void setFoodType(java.lang.String string) -
isRemoveNegativeEffectOnCooked
public boolean isRemoveNegativeEffectOnCooked() -
setRemoveNegativeEffectOnCooked
public void setRemoveNegativeEffectOnCooked(boolean boolean1) -
getCustomEatSound
public java.lang.String getCustomEatSound() -
setCustomEatSound
public void setCustomEatSound(java.lang.String string) -
getChef
public java.lang.String getChef() -
setChef
public void setChef(java.lang.String string) -
getOnCooked
public java.lang.String getOnCooked() -
setOnCooked
public void setOnCooked(java.lang.String string) -
getHerbalistType
public java.lang.String getHerbalistType() -
setHerbalistType
public void setHerbalistType(java.lang.String string) -
getSpices
public java.util.ArrayList getSpices() -
setSpices
public void setSpices(java.util.ArrayList arrayList) -
getTex
- Overrides:
getTex
in classInventoryItem
-
getWorldTexture
public java.lang.String getWorldTexture()- Overrides:
getWorldTexture
in classInventoryItem
-
getReduceFoodSickness
public int getReduceFoodSickness() -
setReduceFoodSickness
public void setReduceFoodSickness(int int1) -
getFluReduction
public int getFluReduction() -
setFluReduction
public void setFluReduction(int int1) -
getPainReduction
public float getPainReduction() -
setPainReduction
public void setPainReduction(float float1) -
getCarbohydrates
public float getCarbohydrates() -
setCarbohydrates
public void setCarbohydrates(float float1) -
getLipids
public float getLipids() -
setLipids
public void setLipids(float float1) -
getProteins
public float getProteins() -
setProteins
public void setProteins(float float1) -
getCalories
public float getCalories() -
setCalories
public void setCalories(float float1) -
isPackaged
public boolean isPackaged() -
setPackaged
public void setPackaged(boolean boolean1) -
getFreezingTime
public float getFreezingTime() -
setFreezingTime
public void setFreezingTime(float float1) -
freeze
public void freeze() -
isFrozen
public boolean isFrozen() -
setFrozen
public void setFrozen(boolean boolean1) -
canBeFrozen
public boolean canBeFrozen() -
setCanBeFrozen
public void setCanBeFrozen(boolean boolean1) -
isFreezing
public boolean isFreezing() -
isThawing
public boolean isThawing() -
getReplaceOnRotten
public java.lang.String getReplaceOnRotten() -
setReplaceOnRotten
public void setReplaceOnRotten(java.lang.String string) -
multiplyFoodValues
public void multiplyFoodValues(float float1) -
getRottenTime
public float getRottenTime() -
setRottenTime
public void setRottenTime(float float1) -
getCompostTime
public float getCompostTime() -
setCompostTime
public void setCompostTime(float float1) -
getOnEat
public java.lang.String getOnEat() -
setOnEat
public void setOnEat(java.lang.String string) -
isBadInMicrowave
public boolean isBadInMicrowave() -
setBadInMicrowave
public void setBadInMicrowave(boolean boolean1)
-