Class Food


public final 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 String useOnConsume
    • rotten

      protected boolean rotten
    • bDangerousUncooked

      protected boolean bDangerousUncooked
    • LastCookMinute

      protected int LastCookMinute
    • thirstChange

      public float thirstChange
    • Poison

      public boolean Poison
    • spices

      public ArrayList<String> spices
    • LastFrozenUpdate

      protected float LastFrozenUpdate
    • FreezerAgeMultiplier

      public static final float FreezerAgeMultiplier
      See Also:
    • motherID

      public int motherID
    • eggGenome

      public HashMap<String,AnimalGene> eggGenome
  • Constructor Details

  • Method Details

    • getCategory

      public String getCategory()
      Overrides:
      getCategory in class InventoryItem
    • IsFood

      public boolean IsFood()
      Overrides:
      IsFood in class InventoryItem
    • getSaveType

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

      public boolean checkEggHatch(IsoHutch isoHutch)
    • update

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

      public void updateSound(BaseSoundEmitter emitter)
      Overrides:
      updateSound in class InventoryItem
    • updateAge

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

      public void updateAge(boolean boolean5)
    • setAutoAge

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

      public float getActualWeight()
      Overrides:
      getActualWeight in class InventoryItem
      Returns:
      the ActualWeight
    • getWeight

      public float getWeight()
      Overrides:
      getWeight in class InventoryItem
      Returns:
      the Weight
    • CanStack

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

      public void save(ByteBuffer output, boolean net) throws IOException
      Overrides:
      save in class InventoryItem
      Throws:
      IOException
    • load

      public void load(ByteBuffer input, int WorldVersion) throws IOException
      Overrides:
      load in class InventoryItem
      Throws:
      IOException
    • finishupdate

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

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

      public String getName()
      Overrides:
      getName in class InventoryItem
      Returns:
      the name
    • DoTooltip

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

      public float getEnduranceChange()
    • setEnduranceChange

      public void setEnduranceChange(float _endChange)
    • getUnhappyChange

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

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

      public float getHungerChange()
    • getStressChange

      public float getStressChange()
      Overrides:
      getStressChange in class InventoryItem
      Returns:
      the stressChange
    • getBoredomChangeUnmodified

      public float getBoredomChangeUnmodified()
    • getEnduranceChangeUnmodified

      public float getEnduranceChangeUnmodified()
    • getStressChangeUnmodified

      public float getStressChangeUnmodified()
    • getThirstChangeUnmodified

      public float getThirstChangeUnmodified()
    • getUnhappyChangeUnmodified

      public float getUnhappyChangeUnmodified()
    • getScore

      public float getScore(SurvivorDesc desc)
      Overrides:
      getScore in class InventoryItem
    • isBadCold

      public boolean isBadCold()
    • setBadCold

      public void setBadCold(boolean _bBadCold)
    • isGoodHot

      public boolean isGoodHot()
    • setGoodHot

      public void setGoodHot(boolean _bGoodHot)
    • isCookedInMicrowave

      public boolean isCookedInMicrowave()
    • setCookedInMicrowave

      public void setCookedInMicrowave(boolean b)
    • getHeat

      public float getHeat()
    • getInvHeat

      public float getInvHeat()
      Overrides:
      getInvHeat in class InventoryItem
    • 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 String getUseOnConsume()
    • setUseOnConsume

      public void setUseOnConsume(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(List<String> replaceOnCooked)
    • getReplaceOnCooked

      public List<String> getReplaceOnCooked()
    • getBaseHunger

      public float getBaseHunger()
    • setBaseHunger

      public void setBaseHunger(float _baseHunger)
    • isSpice

      public boolean isSpice()
      Overrides:
      isSpice in class InventoryItem
    • setSpice

      public void setSpice(boolean _isSpice)
    • isPoison

      public boolean isPoison()
    • getPoisonDetectionLevel

      public int getPoisonDetectionLevel()
    • setPoisonDetectionLevel

      public void setPoisonDetectionLevel(int _poisonDetectionLevel)
    • getPoisonLevelForRecipe

      public Integer getPoisonLevelForRecipe()
    • setPoisonLevelForRecipe

      public void setPoisonLevelForRecipe(Integer poisonLevelForRecipe)
    • getUseForPoison

      public int getUseForPoison()
    • setUseForPoison

      public void setUseForPoison(int useForPoison)
    • getPoisonPower

      public int getPoisonPower()
    • setPoisonPower

      public void setPoisonPower(int poisonPower)
    • getFoodType

      public String getFoodType()
    • setFoodType

      public void setFoodType(String foodType)
    • isRemoveNegativeEffectOnCooked

      public boolean isRemoveNegativeEffectOnCooked()
    • setRemoveNegativeEffectOnCooked

      public void setRemoveNegativeEffectOnCooked(boolean removeNegativeEffectOnCooked)
    • getCookingSound

      public String getCookingSound()
    • getCustomEatSound

      public String getCustomEatSound()
    • setCustomEatSound

      public void setCustomEatSound(String customEatSound)
    • getChef

      public String getChef()
    • setChef

      public void setChef(String chef)
    • getOnCooked

      public String getOnCooked()
    • setOnCooked

      public void setOnCooked(String onCooked)
    • getHerbalistType

      public String getHerbalistType()
    • setHerbalistType

      public void setHerbalistType(String type)
    • getSpices

      public ArrayList<String> getSpices()
    • setSpices

      public void setSpices(ArrayList<String> _spices)
    • getTex

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

      public String getWorldTexture()
      Overrides:
      getWorldTexture in class InventoryItem
      Returns:
      the WorldTexture
    • getStaticModel

      public String getStaticModel()
      Overrides:
      getStaticModel in class InventoryItem
    • 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()
    • syncItemFields

      public void syncItemFields()
      Overrides:
      syncItemFields in class InventoryItem
    • getReplaceOnRotten

      public String getReplaceOnRotten()
    • setReplaceOnRotten

      public void setReplaceOnRotten(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 String getOnEat()
    • setOnEat

      public void setOnEat(String _onEat)
    • isBadInMicrowave

      public boolean isBadInMicrowave()
    • setBadInMicrowave

      public void setBadInMicrowave(boolean _badInMicrowave)
    • isTainted

      public boolean isTainted()
    • setTainted

      public void setTainted(boolean boolean0)
    • setMilkQty

      public void setMilkQty(int int0)
    • getMilkQty

      public int getMilkQty()
    • setMilkType

      public void setMilkType(String string)
    • getMilkType

      public String getMilkType()
    • isFertilized

      public boolean isFertilized()
    • setFertilized

      public void setFertilized(boolean boolean0)
    • getAnimalHatch

      public String getAnimalHatch()
    • setAnimalHatch

      public void setAnimalHatch(String string)
    • getAnimalHatchBreed

      public String getAnimalHatchBreed()
    • setAnimalHatchBreed

      public void setAnimalHatchBreed(String string)
    • getTimeToHatch

      public int getTimeToHatch()
    • setTimeToHatch

      public void setTimeToHatch(int int0)
    • isNormalAndFullFood

      public boolean isNormalAndFullFood()
    • isWholeFoodItem

      public boolean isWholeFoodItem()
    • isUncooked

      public boolean isUncooked()
    • OnAddedToContainer

      public void OnAddedToContainer(ItemContainer var1)
      Overrides:
      OnAddedToContainer in class InventoryItem
    • OnBeforeRemoveFromContainer

      public void OnBeforeRemoveFromContainer(ItemContainer var1)
      Overrides:
      OnBeforeRemoveFromContainer in class InventoryItem
    • setFertilizedTime

      public void setFertilizedTime(int int0)
    • inheritFoodAgeFrom

      public void inheritFoodAgeFrom(InventoryItem inventoryItem)
      Overrides:
      inheritFoodAgeFrom in class InventoryItem
    • inheritOlderFoodAge

      public void inheritOlderFoodAge(InventoryItem inventoryItem)
      Overrides:
      inheritOlderFoodAge in class InventoryItem
    • hasAnimalParts

      public boolean hasAnimalParts()
    • isAnimalSkeleton

      public boolean isAnimalSkeleton()
    • canAge

      public boolean canAge()
    • isFood

      public boolean isFood()
      Overrides:
      isFood in class InventoryItem
    • copyFrozenFrom

      public void copyFrozenFrom(Food food1)
    • copyCookedBurntFrom

      public void copyCookedBurntFrom(Food food0)
    • copyTemperatureFrom

      public void copyTemperatureFrom(Food food1)
    • copyPoisonFrom

      public void copyPoisonFrom(Food food0)
    • copyAgeFrom

      public void copyAgeFrom(Food food1)
    • copyNutritionFrom

      public void copyNutritionFrom(Food food1)
    • copyNutritionFromSplit

      public void copyNutritionFromSplit(Food food1, int int0)
    • copyNutritionFromRatio

      public void copyNutritionFromRatio(Food food1, float float0)
    • copyFoodFrom

      public void copyFoodFrom(Food food1)
    • copyFoodFromSplit

      public void copyFoodFromSplit(Food food1, int int0)