MCFood

This class was added by a mod with mod-id crafttweaker. So you need to have this mod installed if you want to use this feature.

Diese Klasse importieren

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import.

crafttweaker.api.food.MCFood

Constructors

new crafttweaker.api.food.MCFood(healing as int, saturation as float);
ParameterTypeBeschreibung
healingintNo description provided
saturationfloatNo description provided

Methoden

addEffect

Returns crafttweaker.api.food.MCFood

myMCFood.addEffect(effect as crafttweaker.api.potion.MCPotionEffectInstance, probability as float);
ParameterTypeBeschreibung
effectcrafttweaker.api.potion.MCPotionEffectInstanceNo description provided
probabilityfloatNo description provided

clearEffects

myMCFood.clearEffects();

removeEffect

Returns crafttweaker.api.food.MCFood

myMCFood.removeEffect(effect as crafttweaker.api.potion.MCPotionEffectInstance);
ParameterTypeBeschreibung
effectcrafttweaker.api.potion.MCPotionEffectInstanceNo description provided

setCanEatWhenFull

Returns crafttweaker.api.food.MCFood

myMCFood.setCanEatWhenFull(canEatWhenFull as boolean);
ParameterTypeBeschreibung
canEatWhenFullbooleanNo description provided

setFastEating

Returns crafttweaker.api.food.MCFood

myMCFood.setFastEating(fastEating as boolean);
ParameterTypeBeschreibung
fastEatingbooleanNo description provided

setHealing

Returns crafttweaker.api.food.MCFood

myMCFood.setHealing(healing as int);
ParameterTypeBeschreibung
healingintNo description provided

setMeat

Returns crafttweaker.api.food.MCFood

myMCFood.setMeat(meat as boolean);
ParameterTypeBeschreibung
meatbooleanNo description provided

setSaturation

Returns crafttweaker.api.food.MCFood

myMCFood.setSaturation(saturation as float);
ParameterTypeBeschreibung
saturationfloatNo description provided

Properties

NameTypeHas GetterHas Setter
canEatWhenFullbooleantruefalse
healinginttruefalse
isFastEatingbooleantruefalse
meatbooleantruefalse
saturationfloattruefalse