MCFood
Link to 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
Link to 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.
ZenScript Copycrafttweaker.api.food.MCFood
Constructors
Link to constructors
ZenScript Copynew crafttweaker.api.food.MCFood(healing as int, saturation as float);
Parameter | Type | Beschreibung |
---|---|---|
Parameter healing | Type int | Beschreibung No description provided |
Parameter saturation | Type float | Beschreibung No description provided |
Methoden
Link to methoden
addEffect
Link to addeffect
Returns crafttweaker.api.food.MCFood
ZenScript CopymyMCFood.addEffect(effect as crafttweaker.api.potion.MCPotionEffectInstance, probability as float);
Parameter | Type | Beschreibung |
---|---|---|
Parameter effect | Type crafttweaker.api.potion.MCPotionEffectInstance | Beschreibung No description provided |
Parameter probability | Type float | Beschreibung No description provided |
clearEffects
Link to cleareffects
ZenScript CopymyMCFood.clearEffects();
removeEffect
Link to removeeffect
Returns crafttweaker.api.food.MCFood
ZenScript CopymyMCFood.removeEffect(effect as crafttweaker.api.potion.MCPotionEffectInstance);
Parameter | Type | Beschreibung |
---|---|---|
Parameter effect | Type crafttweaker.api.potion.MCPotionEffectInstance | Beschreibung No description provided |
setCanEatWhenFull
Link to setcaneatwhenfull
Returns crafttweaker.api.food.MCFood
ZenScript CopymyMCFood.setCanEatWhenFull(canEatWhenFull as boolean);
Parameter | Type | Beschreibung |
---|---|---|
Parameter canEatWhenFull | Type boolean | Beschreibung No description provided |
setFastEating
Link to setfasteating
Returns crafttweaker.api.food.MCFood
ZenScript CopymyMCFood.setFastEating(fastEating as boolean);
Parameter | Type | Beschreibung |
---|---|---|
Parameter fastEating | Type boolean | Beschreibung No description provided |
setHealing
Link to sethealing
Returns crafttweaker.api.food.MCFood
ZenScript CopymyMCFood.setHealing(healing as int);
Parameter | Type | Beschreibung |
---|---|---|
Parameter healing | Type int | Beschreibung No description provided |
setMeat
Link to setmeat
Returns crafttweaker.api.food.MCFood
ZenScript CopymyMCFood.setMeat(meat as boolean);
Parameter | Type | Beschreibung |
---|---|---|
Parameter meat | Type boolean | Beschreibung No description provided |
setSaturation
Link to setsaturation
Returns crafttweaker.api.food.MCFood
ZenScript CopymyMCFood.setSaturation(saturation as float);
Parameter | Type | Beschreibung |
---|---|---|
Parameter saturation | Type float | Beschreibung No description provided |
Properties
Link to properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name canEatWhenFull | Type boolean | Has Getter true | Has Setter false |
Name healing | Type int | Has Getter true | Has Setter false |
Name isFastEating | Type boolean | Has Getter true | Has Setter false |
Name meat | Type boolean | Has Getter true | Has Setter false |
Name saturation | Type float | Has Getter true | Has Setter false |