If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at
the top of the file.
import crafttweaker . api.food . FoodProperties;
// FoodProperties.addEffect(effect as MobEffectInstance, probability as float) as FoodProperties;
myFoodProperties . addEffect(myMobEffectInstance, myFloat);
Parameters:
probability: float
Type: float
Return Type:
FoodProperties
// FoodProperties.canAlwaysEat as bool
myFoodProperties . canAlwaysEat
Return Type:
bool
// FoodProperties.canAlwaysEat = (canAlwaysEat as bool);
myFoodProperties . canAlwaysEat = myBool;
Parameters:
canAlwaysEat: bool
Type: bool
// FoodProperties.canAlwaysEat() as bool;
myFoodProperties . canAlwaysEat();
Return Type:
bool
// FoodProperties.canAlwaysEat(canAlwaysEat as bool) as FoodProperties;
myFoodProperties . canAlwaysEat(myBool);
Parameters:
canAlwaysEat: bool
Type: bool
Return Type:
FoodProperties
// FoodProperties.create(nutrition as int, saturationModifier as float) as FoodProperties;
FoodProperties . create(myInt, myFloat);
Parameters:
nutrition: int
Type: int
saturationModifier: float
Type: float
Return Type:
FoodProperties
// FoodProperties.effects as List<Pair<MobEffectInstance, Float>>
Return Type:
List <Pair <MobEffectInstance , Float > >
// FoodProperties.effects() as List<Pair<MobEffectInstance, Float>>;
myFoodProperties . effects();
Return Type:
List <Pair <MobEffectInstance , Float > >
// FoodProperties.isFastFood as bool
myFoodProperties . isFastFood
Return Type:
bool
// FoodProperties.isFastFood = (fastFood as bool);
myFoodProperties . isFastFood = myBool;
Parameters:
fastFood: bool
Type: bool
// FoodProperties.isFastFood() as bool;
myFoodProperties . isFastFood();
Return Type:
bool
// FoodProperties.isFastFood(fastFood as bool) as FoodProperties;
myFoodProperties . isFastFood(myBool);
Parameters:
fastFood: bool
Type: bool
Return Type:
FoodProperties
// FoodProperties.isMeat as bool
Return Type:
bool
// FoodProperties.isMeat = (isMeat as bool);
myFoodProperties . isMeat = myBool;
// FoodProperties.isMeat() as bool;
myFoodProperties . isMeat();
Return Type:
bool
// FoodProperties.isMeat(isMeat as bool) as FoodProperties;
myFoodProperties . isMeat(myBool);
Return Type:
FoodProperties
// FoodProperties.nutrition as int
myFoodProperties . nutrition
Return Type:
int
// FoodProperties.nutrition = (nutrition as int);
myFoodProperties . nutrition = myInt;
// FoodProperties.nutrition() as int;
myFoodProperties . nutrition();
Return Type:
int
// FoodProperties.nutrition(nutrition as int) as FoodProperties;
myFoodProperties . nutrition(myInt);
Return Type:
FoodProperties
// FoodProperties.removeEffect(effect as MobEffectInstance) as FoodProperties;
myFoodProperties . removeEffect(myMobEffectInstance);
Return Type:
FoodProperties
// FoodProperties.removeEffect(effect as MobEffect) as FoodProperties;
myFoodProperties . removeEffect(myMobEffect);
Return Type:
FoodProperties
// FoodProperties.saturationModifier as float
myFoodProperties . saturationModifier
Return Type:
float
// FoodProperties.saturationModifier = (saturationModifier as float);
myFoodProperties . saturationModifier = myFloat;
Parameters:
saturationModifier: float
Type: float
// FoodProperties.saturationModifier() as float;
myFoodProperties . saturationModifier();
Return Type:
float
// FoodProperties.saturationModifier(saturationModifier as float) as FoodProperties;
myFoodProperties . saturationModifier(myFloat);
Parameters:
saturationModifier: float
Type: float
Return Type:
FoodProperties