MCFood
Link to mcfood
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 at the very top of the file.
ZenScript Copyimport crafttweaker.api.food.MCFood;
Constructors
Link to constructors
No Description Provided
ZenScript Copynew MCFood(healing as int, saturation as float) as MCFood
Parameter | Type | Beschreibung |
---|---|---|
Parameter healing | Type int | Beschreibung No Description Provided |
Parameter saturation | Type float | Beschreibung No Description Provided |
Methoden
Link to methoden
Name: addEffect
Return Type: MCFood
ZenScript CopyMCFood.addEffect(effect as MCPotionEffectInstance, probability as float) as MCFood
Parameter | Type | Beschreibung |
---|---|---|
Parameter effect | Type MCPotionEffectInstance | Beschreibung No Description Provided |
Parameter probability | Type float | Beschreibung No Description Provided |
Name: clearEffects
Return Type: void
ZenScript Copy// MCFood.clearEffects() as void
myMCFood.clearEffects();
Name: removeEffect
Return Type: MCFood
ZenScript CopyMCFood.removeEffect(effect as MCPotionEffectInstance) as MCFood
Parameter | Type | Beschreibung |
---|---|---|
Parameter effect | Type MCPotionEffectInstance | Beschreibung No Description Provided |
Name: setCanEatWhenFull
Return Type: MCFood
ZenScript CopyMCFood.setCanEatWhenFull(canEatWhenFull as boolean) as MCFood
Parameter | Type | Beschreibung |
---|---|---|
Parameter canEatWhenFull | Type boolean | Beschreibung No Description Provided |
Name: setFastEating
Return Type: MCFood
ZenScript CopyMCFood.setFastEating(fastEating as boolean) as MCFood
Parameter | Type | Beschreibung |
---|---|---|
Parameter fastEating | Type boolean | Beschreibung No Description Provided |
Name: setHealing
Return Type: MCFood
ZenScript CopyMCFood.setHealing(healing as int) as MCFood
Parameter | Type | Beschreibung |
---|---|---|
Parameter healing | Type int | Beschreibung No Description Provided |
Name: setMeat
Return Type: MCFood
ZenScript CopyMCFood.setMeat(meat as boolean) as MCFood
Parameter | Type | Beschreibung |
---|---|---|
Parameter meat | Type boolean | Beschreibung No Description Provided |
Name: setSaturation
Return Type: MCFood
ZenScript CopyMCFood.setSaturation(saturation as float) as MCFood
Parameter | Type | Beschreibung |
---|---|---|
Parameter saturation | Type float | Beschreibung No Description Provided |
Properties
Link to properties
Name | Type | Has Getter | Has Setter | Beschreibung |
---|---|---|---|---|
Name canEatWhenFull | Type boolean | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name healing | Type int | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name isFastEating | Type boolean | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name meat | Type boolean | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name saturation | Type float | Has Getter true | Has Setter false | Beschreibung No Description Provided |