Class Food

java.lang.Object
zombie.inventory.InventoryItem
zombie.inventory.types.Food

public class Food
extends InventoryItem
  • 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 class InventoryItem
    • getSaveType

      public int getSaveType()
      Overrides:
      getSaveType in class InventoryItem
    • update

      public void update()
      Overrides:
      update in class InventoryItem
    • updateAge

      public void updateAge()
      Overrides:
      updateAge in class InventoryItem
    • setAutoAge

      public void setAutoAge()
      Overrides:
      setAutoAge in class InventoryItem
    • updateFreezing

      public void updateFreezing()
    • CanStack

      public boolean CanStack​(InventoryItem inventoryItem)
      Overrides:
      CanStack in class InventoryItem
    • save

      public void save​(java.nio.ByteBuffer byteBuffer, boolean boolean1) throws java.io.IOException
      Overrides:
      save in class InventoryItem
      Throws:
      java.io.IOException
    • load

      public void load​(java.nio.ByteBuffer byteBuffer, int int1, boolean boolean1) throws java.io.IOException
      Overrides:
      load in class InventoryItem
      Throws:
      java.io.IOException
    • finishupdate

      public boolean finishupdate()
      Overrides:
      finishupdate in class InventoryItem
    • shouldUpdateInWorld

      public boolean shouldUpdateInWorld()
      Overrides:
      shouldUpdateInWorld in class InventoryItem
    • getName

      public java.lang.String getName()
      Overrides:
      getName in class InventoryItem
    • DoTooltip

      public void DoTooltip​(ObjectTooltip objectTooltip, ObjectTooltip.Layout layout)
      Overrides:
      DoTooltip in class InventoryItem
    • getEnduranceChange

      public float getEnduranceChange()
    • getUnhappyChange

      public float getUnhappyChange()
      Overrides:
      getUnhappyChange in class InventoryItem
    • getBoredomChange

      public float getBoredomChange()
      Overrides:
      getBoredomChange in class InventoryItem
    • getHungerChange

      public float getHungerChange()
    • getStressChange

      public float getStressChange()
      Overrides:
      getStressChange in class InventoryItem
    • getScore

      public float getScore​(SurvivorDesc survivorDesc)
      Overrides:
      getScore in class InventoryItem
    • 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 class InventoryItem
    • 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

      public Texture getTex()
      Overrides:
      getTex in class InventoryItem
    • getWorldTexture

      public java.lang.String getWorldTexture()
      Overrides:
      getWorldTexture in class InventoryItem
    • 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)