Table of Contents

Class FoodNutritionProperties

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll
public class FoodNutritionProperties
Inheritance
FoodNutritionProperties
Inherited Members

Fields

EatenStack

The item that was eaten.

public JsonItemStack EatenStack

Field Value

JsonItemStack

FoodCategory

The category of the food.

public EnumFoodCategory FoodCategory

Field Value

EnumFoodCategory

Health

The health restored by the food.

public float Health

Field Value

float

Satiety

The saturation restored by the food.

public float Satiety

Field Value

float

SaturationLossDelay

The delay before that extra saturation starts to go away.

public float SaturationLossDelay

Field Value

float

Properties

Intoxication

public float Intoxication { get; set; }

Property Value

float

Saturation

[Obsolete("Use Satiety instead.")]
public float Saturation { get; set; }

Property Value

float

Methods

Clone()

Duplicates the nutrition properties, which includes cloning the stack that was eaten.

public FoodNutritionProperties Clone()

Returns

FoodNutritionProperties